Emmanuel Delay Posted August 26, 2014 Posted August 26, 2014 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. Quote
Emmanuel Delay Posted August 26, 2014 Author Posted August 26, 2014 Never mind, it looks like (ssget "I") does the trick. Quote
Tharwat Posted August 26, 2014 Posted August 26, 2014 I guess it should be P which stands for previous selected object(s) and L stands for last object created . if memory serves . Quote
Emmanuel Delay Posted August 26, 2014 Author Posted August 26, 2014 Yeah, it's the "I" I need. Just the pickfirst selection. Quote
Tharwat Posted August 26, 2014 Posted August 26, 2014 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 Quote
neophoible Posted August 26, 2014 Posted August 26, 2014 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. Quote
Lee Mac Posted August 26, 2014 Posted August 26, 2014 FWIW, here's a more complete reference than that offered by the formal documentation: ssget function reference. (includes the undocumented modes) Quote
Tharwat Posted August 27, 2014 Posted August 27, 2014 Hi, Tharwat. I think he's talking about using the ssget function, I guess you are right . thank you neophoible . Quote
Recommended Posts
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.