Jump to content

How to highlight single selected entities?


Recommended Posts

Posted

I'm picking three line entities and then drawing something. I'm using a single selection set multiple times. 

(setq s (ssget "_+.:S:E" '((0 . "LINE"))))

If I were to use a normal selection set the picked lines are redrawn as dashed so you can see your progress.

With multiple single selections apart from the prompts the user will forget how many lines they have picked.

 

Is there a simple way to recreate the highlighting of the entities as they are picked then at the end to remove all the highlights?    

Posted

Signature

(redraw [ename [mode]])
ename

Type: ads_name

The name of the entity name to be redrawn.

mode

Type: Integer

Value that controls the visibility and highlighting of the entity. The mode can be one of the following values:

1 -- Show entity

2 -- Hide entity (blank it out)

3 -- Highlight entity

4 -- Unhighlight entity

The use of entity highlighting (mode 3) must be balanced with entity unhighlighting (mode 4).

Posted
25 minutes ago, DavidGraham said:

I'm picking three line entities and then drawing something. I'm using a single selection set multiple times. 


(setq s (ssget "_+.:S:E" '((0 . "LINE"))))

If I were to use a normal selection set the picked lines are redrawn as dashed so you can see your progress.

With multiple single selections apart from the prompts the user will forget how many lines they have picked.

 

Is there a simple way to recreate the highlighting of the entities as they are picked then at the end to remove all the highlights?    

 

(redraw (ssname ss 0) 3)

 

Posted

Thank you, that's just what I wanted.  

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...