Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hello,
I have created a new command to delete all the 3DSolids from my drawing but I think that I am getting a prompt to select objects if there are no more 3DSolids to be deleted. How can I prevent this from happening?
My goal is to run the command to delete all 3D Solids and if no 3D Solids can be found just return to the command line.
this is my code
(if (= (getvar "cmdactive") 1) (ssget "x" '((0 . "*3DSOLIDS*"))) (sssetfirst nil (ssget "x" '((0 . "*3DSOLIDS*")))))(command "erase")
and this is what I get in the command line
thank you
Assistant BIM/CAD Manager
Manchester, UK

Manchester, UK
Solved! Go to Solution.