Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

TomBeauford
en respuesta a: alexandresynth

Sorry you're having such a hard time learning how to use layer states and viewport overrides. I've used them extensively since they were first introduced and have a handful of them in each of my template drawings for quick access and couldn't imagine getting by without them.

I use them mostly for viewport overrides which you may be struggling to understand. If a layer color is yellow but set to blue with a viewport override and the layer color is changed to green it will still be blue in the viewport with that viewport override. You seem to be having more issues with viewport overrides than with layer states.

You can remove viewport overrides from selected or all layers in the Layer Manager if you like and once you learn how to use them you won't be able to imagine how to get by without them like most users.

 

If you have a specific question about how layer states or viewport overrides work we'll gladly answer any questions. As far as "It doesn't work how I expected it to when I did this" there's nothing we can do to help you.

 

Personally I wish the Restore option to "Turn off layers not found in layer state." was recognised by lisp layer state functions and when selection Layer States from the drop-down but it's nothing I can't live with.

I replaced the drop-down in the Ribbon with other layer functions like the Layer States Manager and added the line

(vl-registry-write (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" (getvar "cprofile") "\\Dialogs\\AcLayerApps:LayerStatesManager") "LayerNotFound" "0")

 to make sure layers not found in a layer state are not turned off by default in the Layer States Manager so they'll don't turn off layers not found in the drawing that layer state was created in.

64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter