Get/Manipulate model layer Xref override

Get/Manipulate model layer Xref override

AndresCamilion
Explorer Explorer
216 Views
0 Replies
Message 1 of 1

Get/Manipulate model layer Xref override

AndresCamilion
Explorer
Explorer

Hello,

 

for one of our plugins we are trying to figure out how to get and manipulate Layer Overrides (on / thaw / color/ transparency / ...) at a model/drawing level.

 

We know how to do this at a Viewport level and Layout level (which is really the same as with VPs), are able to iterate throughout all Xrefs and so on, but we just cannot quite figure out where this drawing-scope information is saved and how we can access it from the .NET C# API, we don't necessarily need a full code sample, just the class and a quick overview of how to get the corresponding instance.

Sadly the API documentation + forum could not help us this time around.

 

From a quick test, AutoCAD saves this information as an override, as it is able to list it on the Layer State interface (as seen from the model space), even if the external reference cannot be found.

xref-layer-overrides.png

0 Likes
217 Views
0 Replies
Replies (0)