I’m working on a graph to place curbs along curves.
Therefore the user has to select model curves. Afterwards the script creates a coordinate system at a certain parameter along each line. It then uses the node “FamilyInstance.ByCoordinateSystem” to place the family in the “local” coordinate system of the line. After that the parameters length and slope get adjusted.
Problem is that if I run the graph a second time using different curves, Dynamo deletes the first instances due to identical Element IDs. Furthermore if I create a custom node and select multiple lines, Dynamo only returns the family instance for the last line in the list due to identical Element IDs.
I searched through the forums and found this topic https://forum.dynamobim.com/t/familyinstance-bypoint-overwrites/10258.
I think this describes the same problem but only delivers a Python-Node solution for the node “FamilyInstance.ByPoint”. I tried to adjust the python code for the node “FamilyInstance.ByCoordinateSystem” by myself but couldn’t get it done (I lack knowledge in coding).
Does anybody have an idea how to solve my problem or is able to deliver the needed python code?
As a new user I can’t upload attachements. Therefore I put them on my Dropbox: