Autodesk Technology Managers Forum
Share your knowledge, ask questions, and engage with fellow CAD/BIM Managers.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re-Set color, linestyle, line weight to Bylayer

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
marksmith17349
4408 Views, 8 Replies

Re-Set color, linestyle, line weight to Bylayer

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.

Thanks,

Mark

8 REPLIES 8
Message 2 of 9
skintsubby
in reply to: marksmith17349

Try the SETBYLAYER command... and add it to an icon macro

 

I've not tried it but it'll be something like...

 

^C^C-SETBYLAYER;ALL;;;^C^C

 

Mark

Message 3 of 9

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.

 

 

Mark

Message 4 of 9
pendean
in reply to: marksmith17349

Do you just need to set what gets changed with SETBYLAYER command?

http://exchange.autodesk.com/autocad/enu/online-help/ACD/2012/ENU/pages/WS1a9193826455f5ff104f57f10e...

 

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..."?

Message 5 of 9
marksmith17349
in reply to: pendean

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,

Mark

Message 6 of 9
jggerth1
in reply to: marksmith17349

CECOLOR BYLAYER

CELWEIGHT 1

CELTYPE BYLAYER

CETRANSPARENCY BYLAYER

 

should get you started

Message 7 of 9

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

 

Thanks again,

Mark

Message 8 of 9
wundrlik
in reply to: marksmith17349

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)
(princ)
)

 

Once this is loaded you can make a button on the toolbar/ribbon to run the command

Ryan A Wunderlich
Message 9 of 9
JimBadiali
in reply to: jggerth1

thank you. you helped me out also.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Administrator Productivity


Autodesk Design & Make Report