I am trying to create a dynamo script that I can select a linked/inserted .dwg file and have it create pipes for me.
I currently have it working, however I have a couple of issues.
The first issue is if I have a dwg that has lines that join and change direction those elements are not in the list created by element.curves and curves.endpoints. It process any other lines fine.
If I explode the dwg in revit first, then select the individual elements then it will create pipes as expected (without any pipe fittings which is fine)
The issue I am having with this is when I explode the dwg within revit, all of the lines loose the z values.
From what I can see the solutions i need is to either figure out why revit is stripping the z values out when exploding the dwg, or change the dynamo script to something that might handle it better.
I am also trying to pass the level id to the python script but i need to extract just the level element id as an id, not an integer. I cant figure out how to do that either.
The python script just gets start and end xyz values and uses pipe.create to create the pipes.
Thanks in advance.