Filter Blocks and Lines from CAD link

Greetings community :slightly_smiling_face:

I’ve been trying to develop a script to help me convert lines (from a CAD link) into pipe placeholders. However, upon selection and through the use of CAD.CurvesFromCADLayers, I’ve noticed that this node “converts” lines, but also blocks (something that I was trying to avoid). Is there any way to, when selecting the CAD link, only consider its lines? Would the package from BriMohareb be helpful in this case (I’m entirely familiar with it)?

Note: I’m aware that a possible workaround would be setting the blocks in a different layer in CAD. But I’m trying to keep any interactions with the cad file to a minimum.

Kind regards.

¨Hi @LLei something here maybe…

Revit_Xb1puOmWgg

1 Like

Hi Sovitek,
Apologies for the long absence.
In the example you provided, the CAD Blocks are in the same layer as the lines (walls, I believe)? If they are, than it’s somethng that I’m trying to avoid.
In most of our jobs in .cad, lines (eg. lines that represnt pipes) and blocks (eg. blocks that reprensent valves, plumbing fixtures, etc.) are usually drawn in the same layer.
I’ll do more research, but if not I’ll consider your workflow for sure.

My thanks.