Many times I have found users have selected a different color, weight, etc than the "Bylayer" settings of a layer.
Is there a simple, fast way to re-set all the BYLAYER control settings besides selecting each one and setting bylayer?
I was thinking perhaps a custom icon on a toolbar. I have not been able to find the specific command language and how those commands might be strung together.
Any help would be appreciated.
Solved! Go to Solution.
Try the SETBYLAYER command... and add it to an icon macro
I've not tried it but it'll be something like...
Ok, I tried that - it changes the actual elenets in the file.
I don't want to do that although it be usefull
What I would like to do is re-set the color, line type and weight to "By Layer" in the Properties toolbar.
Do you just need to set what gets changed with SETBYLAYER command?
Or just change the selection in that macro from ALL to something else?
Or are you talking about something else when you state "..it changes the actual elenets in the file..."?
I am looking for an easy, efficient way to set the color, line type and weight to BY LAYER in the Properties Toolbar with one button, instead of having to select each in the Properties Toolbar and set it to back to BY LAYER after someone else has selected another value for them that propably isn't a CAD Standard.
I am not looking for a way to change the attributes of elements in the file.
Thanks for all the suggestions, most worked.
However, after some trial and error, the value of -1 will set the line weight to BY LAYER in the Properties Toolbar
I'll throw my 2 cents in as well. I run into this quite often with our drawings, so I have a lisp routine that I use:
(defun c:BYL ()
(setq uecho (getvar "cmdecho"))
(setvar "cmdecho" 0)
(prompt "\nSelect Items To Change To BYLAYER :")
(setq ps1 (ssadd))
(setq ps1 (ssget))
(command "CHANGE" ps1 "" "P" "C" "BYLAYER" "LT" "BYLAYER" "LW" "BYLAYER" "")
(setvar "cmdecho" uecho)
Once this is loaded you can make a button on the toolbar/ribbon to run the command
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.