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.
You donât really need to explode as long as youâve pre-isolated the curves in the CAD file. Have you tried using âElement.Geometryâ instead of âElement.Curvesâ ?
Good morning to all, is there any way to have a look at the python code used for the script? I already imported all the lines and point but i really donât know how to create the pipes and the fittings. I tried to create a macro to create only pipes from an excel file but I donât know how to convert my macro into a python code for dynamo, it would be very appreciate if someone could share these information or the script to look inside.
@c.barribaud Iâve recently launched a new package called BimorphNodes that includes optimised nodes for converting curves from DWG/DGNâs and which may enable you to significantly simplify the workflow demonstrated in this thread (or more specifically, eliminate the need for reconstructing the curves via Excel).
The CurvesFromCADLayer node is the first node in Dynamo Sandbox (Revit version of Dynamo) that enables conversion of curves from CAD links or imports by layer name - essentially, you can pick and choose what you want to convert to curves from the CAD link/import by layer, like a filter.
It is also optimised to convert curve types that typically fail when using Explode or Revit.Elements.Element.Curve node which mitigates the âmissing curveâ problem or issues with Z coordinates being zeroed when using explode.
Title is matching but not the user. This is someone else post to avoid hijacking others post i request you create a new post and link this as reference. Hope that make sense!
Hi all,
Can you see everything with this video.
We only use this method to create pipes on the layout.
For take off quantity when you want to ignore pipe fitting