I’m working on a graph which generates dimensions and overrides the values to provide reinforcement tagging information for ranges of bars in a project-specific format. The graph also generates some detail lines which act as leaders to make the drawing clearer.
It is working well, but I started having an issue with Dynamo generating extra dimension and detail line elements in Revit, which are not being output by the nodes. I have queried the extra elements using the Select Model Element node, but I cannot find these elements in any of the output lists in my Dynamo script.
Is there any way to select an element in Revit, which was generated by Dynamo, and identify the specific node which created that element? The graph only contains one copy of each node which is creating the dimensions and model lines, and those nodes are not reporting the extra elements in their output lists. So I want to query the unexpected elements to track down the node which created them (I’m confident there are no such nodes in my script and Dynamo is just randomly generating these elements, which makes no sense). The screen shot below shows the unexpected elements:
It is particularly odd that the elements line up properly with reinforcement elements which are not at the ends of the ranges I’m trying to tag. I made sure that those reinforcement elements are not included in the lists which define the coordinates of the model lines/dimensions being created. All the output lists show 6 model elements and 3 dimensions, but Dynamo is creating an extra one of each. Below a screenshot of the element ID of the unexpected dot/circle next to the (only) node which creates the circles, showing that the node is not creating that circle. Also note that only 6 points and 6 circles (based on locations of reinforcement elements) are being created, but 7 model curves appear in Revit:
The same thing applies to the vertical model line and the additional dimension. Below a screenshot of the dimension creation and value override nodes - all lists contain only 3 items, but 4 dimensions are being generated (Select Model Element shows the extra dimension):
I don’t define the extra elements anywhere in my graph. Is there any way to select them in Revit and identify their source in Dynamo? Has anyone had Dynamo creating unexpected and unreported elements?
The Dynamo file is linked to a large Excel sheet and contains a number of custom nodes, so it will be difficult to clean up and share the files here. I hope it is possible to find an answer/solution without the files.
Thanks for your time



