Export corridor feature lines to another drawing

Hi @Overcooked_75,

Yes, you can do this. Assuming that the 2D drawing is xref’d into the 3D drawing, you can take advantage of the fact that an xref is basically just a block reference. So, you can do this:

  1. Select the xref in Dynamo (this will return a block reference)
  2. Get the parent block definition using BlockReference.Block

From there, you can get whatever data you want from the block just like you would from model space or some other block definition in the drawing. For example, you could use the All Objects of Type or All Objects on Layer nodes using the aforementioned block definition as the block input. If the xref changes, just re-run the Dynamo graph.

Let me know if you need a sample.

1 Like