How to force linetype/layer use ByLayer for color?
We have recently upgraded to AutoCAD Mechanical 2025. I have noticed an issue that I have not been aware of earlier, but I don’t know whether it was present or not in earlier versions.
In the Home tab, Layers panel, there are to ways to set current layer. I don’t know their official names, so I will call the dropdown that displays layer names (AM_0, AM_1 etc.) and their respective color dropdown “A”. The other one displays linetypes (Contour, Hidden, Text etc.), which I will refer to as dropdown “B”.
When I use dropdown “A” to change current layer, and then run the COLORS command, all of the layers have ByLayer as color. Good, this is what I want.
On the other hand, when I use dropdown “B” to change current layer... For most linetypes/layers COLOR also indicates ByLayer - except for one. Linetype “Text” (AM_6), has its color forced to yellow.
This causes several problems.
For example, if a user uses dropdown “B” to set linetype/layer to “Text”, and later uses dropdown “A” to change to another layer - say, AM_3 (for hidden) - new features that they draw are drawn in AM_3 with dashed line, but the color is forced to yellow (instead of Bylayer and default magenta).
I have looked at the macros in CUI, but don’t see anything strange. For “Text” and “Hidden”, the macros are:
$M=$(if,$(eq,$(getvar,users2),GENLAYSLCT_IS_ACTIVE),ACADM~TXT3,'_-amlayer;_o;TXT3) $M=$(if,$(eq,$(getvar,users2),GENLAYSLCT_IS_ACTIVE),ACADM~HIDW,'_-amlayer;_o;HIDW)
I have tried to set “Text” as current, change COLOR to ByLayer and save this as a template, but it didn’t have any effect.
Where and how can I force “Text” to also use ByLayer, just like all the other linetypes/layers?