TheSwamp

Code Red => .NET => Topic started by: nobody on January 22, 2021, 04:54:55 PM

Title: Xref Layers
Post by: nobody 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)?
Title: Re: Xref Layers
Post by: nobody on January 22, 2021, 05:27:36 PM
Nevermind :) Abandoning the path for a new one.
Title: Re: Xref Layers
Post by: Nightcrawler 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