Jump to content
transcad

Selection set to Dictionary

Recommended Posts

transcad

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

Share this post


Link to post
Share on other sites
Lee Mac

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.

Share this post


Link to post
Share on other sites
dlanorh

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.

Share this post


Link to post
Share on other sites
Grrr
13 minutes ago, dlanorh said:

A selection set is a collection of entity names.

 

Fixed

  • Like 1

Share this post


Link to post
Share on other sites
dlanorh
1 hour ago, Grrr said:

 

Fixed

 

Thanks, we all have brain farts from time to time. :thumbsup:

  • Like 1

Share this post


Link to post
Share on other sites
transcad

Thanks guys, thanks Lee! 😀

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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