Finally i managed to create script for creating beams from CAD to Revit by dynamo with the help of this wonderful community. I’m sharing the script and hope someone find and use it and save his/her time. I’d like to take this script one step further.The problem is;
Dynamo can’t create center lines of beam layers when theye are not perpenticular.
Mr. @jacob.small use to pointed out that BoundingBox method was the issue. But i couldn’t figure out how i create centerlines with another method.
I’m also sharing my files.
After you filter components of more than one you have sets of curves which are parallel to each other and within a given distance of each other. Surface.ByLoft should make a quick surface for each grouping.
Each of those surfaces has an isocurve at parameter 0.5 at the center line of the beam, and another Isocurve at parameter 0.5 where you’d take a cross section at the middle of the beam, matching the beam width.
Disable the preview for all of the geometry and pull out the first sublist. You have four curves there (and in many of the sublists) when you should only have pairs, and we need to see why.
And there lies the problem. These beams aren’t properly pairing up. You’ll need to look at another method of finding the pairs in the previous step where you grouped by distance. Anything which builds atop that step and doesn’t correct the issue will be insufficient.
One thought: before you group by distance, try trimming the lines by the distance grouping.