How to make a selection prompt like ERASE command

How to make a selection prompt like ERASE command

nam_h_tran
Advocate Advocate
277 Views
3 Replies
Message 1 of 4

How to make a selection prompt like ERASE command

nam_h_tran
Advocate
Advocate

In erase command. I realise, when i select a set of objects. It not highlighted. Instead it fade the selected objects i choose. How can i make a select prompt like that? 

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

norman.yuan
Mentor
Mentor
Accepted solution

There could be different ways to do it. But simplest way would be using HighlightOverrule. Here is a post I wrote almost 15 years ago that show how to do similar as you described (I just changed the color of the highlighted entity. Obviously, you can also change the entity's Transparency as well):

 

https://drive-cad-with-code.blogspot.com/2010/09/highlight-autocad-entity-in-your-own.html#google_vi... 

 

 

Norman Yuan

Drive CAD With Code

EESignature

Message 3 of 4

nam_h_tran
Advocate
Advocate

Does it work well when i just hover mouse around entity?. Cause i just know now, in erase mode for command erase, my mouse not even selected objects yet, just hover it and it change color ( fade) already

0 Likes
Message 4 of 4

nam_h_tran
Advocate
Advocate

Thks. It work well : D 

0 Likes