Layer-color

Layer-color

suparhigh12345
Contributor Contributor
543 Views
2 Replies
Message 1 of 3

Layer-color

suparhigh12345
Contributor
Contributor

Hello, how to set autocad to "ByLayer" before any drawings. Unfortunatly I was not able to accomplish that simple task on my own. Is this possible?

 

suparhigh12345_0-1669656732440.png

 

 

0 Likes
Accepted solutions (1)
544 Views
2 Replies
Replies (2)
Message 2 of 3

norman.yuan
Mentor
Mentor
Accepted solution

ThisDrawing.SetVariable "CECOLOR", "BYLAYER"

Norman Yuan

Drive CAD With Code

EESignature

Message 3 of 3

Ed__Jobe
Mentor
Mentor

Since you want to do this 'before drawings', it's worth mentioning that you can create a dvb called acad.dvb and if you put it in the search file path, it will load automatically at startup. Then if you have a public sub called AcadStarup in this dvb, it will run at startup. Here you can set your variables.

 

Alternatively, you can set the variable value you want in SYSVARMONITOR and it will notify you if it has changed.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes