Author Topic: Xref Layers  (Read 1386 times)

0 Members and 1 Guest are viewing this topic.

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Xref Layers
« on: January 22, 2021, 04:54:55 PM »
Would like to check if a layer is from an xref but not iterate through the xref roots or check for "|" in the name.

Anyone know if there are members or properties in layers that will let me identify if it is from an xref (or another method)?

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Re: Xref Layers
« Reply #1 on: January 22, 2021, 05:27:36 PM »
Nevermind :) Abandoning the path for a new one.

Nightcrawler

  • Mosquito
  • Posts: 7
Re: Xref Layers
« Reply #2 on: January 27, 2021, 08:05:17 AM »
For anyone else looking for this:

If a layer is not dependent it is a layer in the current drawing:

Code: [Select]
layer.IsDependent == false