RepCad Posted May 9, 2021 Posted May 9, 2021 (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 May 9, 2021 by amir0914 Quote
BIGAL Posted May 9, 2021 Posted May 9, 2021 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. 1 Quote
tombu Posted May 9, 2021 Posted May 9, 2021 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. 1 Quote
Jonathan Handojo Posted May 10, 2021 Posted May 10, 2021 (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 May 10, 2021 by Jonathan Handojo 1 Quote
Lee Mac Posted May 10, 2021 Posted May 10, 2021 You may also wish to refer to my explanation and suggestion posted here. 2 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.