Jump to content

Recommended Posts

Posted (edited)

Hi everyone,

I've been using initget with entsel in my codes so that users can choose option inside entsel, now I need to perform it with ssget, to do this I wrote :

 

(initget "Setting")

(setq ss (ssget"\nSelect objects  [Setting]: "))

 

but it didn't work, does someone know what the problem is?

Edited by amir0914
Posted

SSget works with filters like objects Circle Arc Line, you have to make a choice before running ssget then you can use your filter.

 

So create a initget with what you want.

 

Then do the ssget with correct filter, can not provide more info as do not know what it is your trying to use.

 

  • Like 1
Posted

Expanding on what BIGAL said

 

From AutoCAD Help

initget (AutoLISP) https://help.autodesk.com/view/ACD/2022/ENU/?guid=GUID-9ED8841B-5C1D-4B3F-9F3B-84A4408A6BBF

lists all the lisp functions it works with. No selection set functions are included.

 

ssget (AutoLISP) https://help.autodesk.com/view/ACD/2022/ENU/?guid=GUID-0F37CC5E-1559-4011-B8CF-A3BA0973B2C3

describes using ssget with a filter list

and

About Selection Set Filter Lists (AutoLISP) https://help.autodesk.com/view/ACD/2022/ENU/?guid=GUID-7BE77062-C359-4D01-915B-69CF672C653B

gives a few examples and provides related topics and links to help you make whatever filter you need.

  • Like 1
Posted (edited)

Just like @BIGAL and @tombu said, ssget isn't compatible with prompting messages like entsel does. Probably in the future it might change.

Edited by Jonathan Handojo
  • Like 1
Posted

You may also wish to refer to my explanation and suggestion posted here.

  • Like 2

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