Jump to content

Get previously selected objects


Emmanuel Delay

Recommended Posts

Hi,

 

I know how to get the client to select objects, for example with SSGET.

 

But how do I read the objects that are already selected, the moment the client types the command of my program?

 

-----

 

Example: I have 300 cameras, pointed in any direction.

I want to turn some of those cameras 90° clockwise.

 

- With QSELECT I first select the cameras with an angle between -45° and +45° (or those with color=blue; ...)

- Then I type my new command.

- Those cameras all get a rotation 90° less than they had.

Link to comment
Share on other sites

Here are all the options if you are interested .

 

Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon/Group/Add/Remove/Multiple/Previous/Undo/AUto/SIngle/SUbobject/Object

Link to comment
Share on other sites

Hi, Tharwat. I think he's talking about using the ssget function, where most of the available options are covered below (from AutoLISP Reference Guide 2013):

C Crossing selection.

CP Cpolygon selection (all objects crossing and inside of the specified polygon).

F Fence selection.

I Implied selection (objects selected while PICKFIRST is in effect).

L Last visible object added to the database.

P Last selection set created.

W Window selection.

WP WPolygon (all objects within the specified polygon).

X Entire database. If you specify the X selection method and do not provide a filter-list, ssget selects all entities in the database, including entities on layers that are off, frozen, and out of the visible screen.

:E Everything within the cursor's object selection pickbox.

:N Call ssnamex for additional information on container blocks and transformation matrices for any entities selected during the ssget operation.

:R Allows entities in a long transaction to be selected.

:S Allow single selection only.

:U Enables subentity selection. Cannot be combined with the duplicate (": D") or nested (":N") selection modes.

 

I left a space in the colon D option to avoid a smiley.

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