Message 1 of 24
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I made a lisp that allows me to assign a hatch to the face of a 3d solid. The only issue is that i have to select the face twice. Is there any way that i can just select the face one time? So that i can just have two total clicks. One to isolate the object, one to select which face to hatch.
;QUICK COMMAND TO CREATE A HATCH IN MODEL
(Defun c:MODELHATCH ()
(setvar "CMDECHO" 0)
(prompt "\nMODEL HATCH - Select object to hatch ..")
(setq SS1 (ssget))
(command "isolateobjects" SS1 "")
(prompt "\nMODEL HATCH - Select face of object to hatch ..")
(command "ucs" "f" pause "")
(command "-hatch" "p" "stars" "1" "0" pause "")
(command "unisolateobjects")
(setvar "CMDECHO" 1)
)
;how can i make it to where i select the face one time instead of twice
Solved! Go to Solution.