- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm writing an AutoLISP routine that prompts the user to select a single object, and can't figure out how to deselect all currently selected objects before prompting the user with (ssget) or (entsel). Is there an easy way to do this? (I'm not asking how to delete a selection set from memory, but how to deselect objects that are visibly selected).
This is an issue because I want the user to select only one object. With (ssget), the way you would do this is:
(ssget "_+.:E:S")
BUT, if the user already has objects selected when the routine is run, those objects will be included in the selection set, hence returning a selection set with multiple entities.
(entsel) works as desired, with restricting the returned selection set to a single object. BUT if objects are already selected when (entsel) is called, those objects remain visibly selected (with the blue-square-grab-points visible) while the user selects an object for (entsel). This would be confusing behavior for the end user.
I'm running Windows 10 and AutoCAD 2016.
Thanks!
Solved! Go to Solution.