I could do my Dynamo script to rename my assemblies in Revit; however, at the moment, it doesn’t follow an order.
I want to manipulate the sequence of the rename following a line, for example, as per the image, starting with a sequence where the blue dot is placed and continuing the sequence as per the red line.
I checked the video, and it looks like this tool does not have an assembly in its category options, but I think I can do this with a spline from Dynamo.
Try the below and post where you get stuck. I’m fairly sure that I am using node names which you can search for in this descriptions so you can figure it out with this if you put in the effort.
First draw the perimeter curves. Doesn’t matter how, but they have to be one continuous polycurve. I would likely use select model elements to pick four model curves.
From there get the location point of the assembly. You have this in your graph.
From there select the blue point. Again, this could be a ‘select model element’, and once you have that pull it’s location point.
From there get the parameter for each assembly location point on the PolyCurve using a Curve.ParameterAtPoint node.
After that use Curve.ParameterAtPoint to find the parameter for the blue dot point.
Now use a < node to find out which parameters from the assembly points are less than the parameter from the blue dot.
Next use an if node to return 1 for any true value, and 0 for any false value from the < node.
Next use a + node to add the 1 or 0 to the associated parameter from the Curve.ParameterAtPoint node. The lowest value in the list should be near to the blue point parameter, and the highest should be near to one more than the blue point parameter.
Next use a List.SortByKey to sort the assemblies themselves by the parameter values.
Finally rename the resorted assemblies as you currently are.
I’m closer to the solution. It’s still not working, but now I can see in the model the spline shows the intersections with the assemblies, and apparently, the rename is correct; however, it is not updating the rename in the Revit model.
Hi @break113 you have 3 DH-1 and we cant rename this type so the have unique type nameas this is the same assembly, but here is a way there probably can work…