Change the properties before activating a command

Change the properties before activating a command

SiEngineer
Participant Participant
216 Views
1 Reply
Message 1 of 2

Change the properties before activating a command

SiEngineer
Participant
Participant

Is it possible to change the properties before activating a command so that all entities made by that command have those properties? Specifically changing the Color and layer properties to the one below. I basically want a new command in the ribbon for each draw command, annotation command so that the user can just click a button and the properties are chosen and then they are put back afterwards. It is like the layer director by Lee Mac but I can't find a vb.net version of it. An alternate solution would be to select the entities that were created after the command is run. Is there a way to do that?

2023-06-02 14_07_13-.png

0 Likes
217 Views
1 Reply
Reply (1)
Message 2 of 2

_gile
Consultant
Consultant

Hi,

The Database class provides properties for most of the database system variables such as Cecolor and Clayer.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes