Current Layer Set


Joe_Carrick
 Share

Recommended Posts

In X9 a layer_set attribute was added to each object.  In most cases that matches the "Current Layer Set" but sometimes it only matches the Layer Set in use when the object was created.  This seems to be true for all Architectural Objects.  OTOH, Text Objects always match the "Current Layer Set".

 

So, in User Text Macros I use a global variable $LayerSet when I want to know the "Current Layer Set" in order to get a different result based on what that is.  In order to set that global variable, I've added the attached macro to all my Defaults for Callouts, Markers, Text and Rich Text.  Then it's just a matter of placing at least one of those items in all Plan Views, Sections, Elevations, CAD Details, etc.  Whenever the Layer Set is changed, the value of $LayerSet is updated.

 

LayerSet,Global.json

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share