Jump to content

Selection set to Dictionary


transcad

Recommended Posts

Hi guys,

I want to  keep a selection set of objects into a dictionary, in a drawing, to be able to select the same objects after closing and opening again that drawing. How to do that? Thanks!

Edited by transcad
incomplete information
Link to comment
Share on other sites

I would personally suggest storing the entity handles (these are unique & persistent for the lifetime of the drawing); you can then subsequently use the handent function to convert the handle back to an entity, before using ssadd to add such entity to a selection set.

Link to comment
Share on other sites

A selection set is a special list of entity names. IIRC, Entity names can change across drawing sessions. You need to save a list of entity handles or convert the selection set to a group then reconvert back to a selection set when re-opened.

Link to comment
Share on other sites

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