Message 1 of 12
One of my prompts isnt appearing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Made a pretty cool little command this morning that creates 4 views of an object in model space.
Everything is working fine but the first prompt that says "\nQUICK VIEWS - Select objects to block .." isnt showing up. Any reason why?
Im also open to any suggestions on how i couldve wrote this more efficiently or done this same thing a different way.
;QUICK COMMAND TO CREATE A TOP VIEW, FRONT VIEW, SIDE VIEW, AND ISO VIEW IN MODEL SPACE
(Defun c:QUICKVIEWS ()
(setvar "cmdecho" 0)
(command "undo" "begin")
(prompt "\nQUICK VIEWS - Select objects to block ..")
(setq userobjectselection (ssget))
(command "isolateobjects" userobjectselection "")
(command "ucs" "w")
(command "-view" "_swiso")
(prompt "\nQUICK VIEWS - Select lowest bottom left corner ..")
(setq userinsertionpoint (getpoint))
(command "-layer" "s" "3DMODEL" "")
(command "-block" "3D MODEL" userinsertionpoint userobjectselection "")
(command "unisolateobjects")
(command "ucs" "w")
(command "-insert" "3D MODEL" "0,500,0" "1" "1" "0")
(command "ucs" "x" "-90")
(command "-insert" "3D MODEL" "0,0,0" "1" "1" "0")
(command "ucs" "z" "-90")
(command "-insert" "3D MODEL" "0,500,0" "1" "1" "0")
(command "ucs" "w")
(command "ucs" "x" "-45")
(command "ucs" "z" "45")
(command "-insert" "3D MODEL" "603.5534,-103.5534,353.5534" "1" "1" "0")
(command "-layer" "s" "NOTES" "")
(command "ucs" "w")
(command "-insert" "fabtag-xs" "0,-10,0" "8" "8" "0")
(command "-mtext" "0,495" "s" "notes" "j" "tl" "c" "n" "0,495" "{\\LPLAN VIEW}" "")
(command "-mtext" "0,-5" "s" "notes" "j" "tl" "c" "n" "0,-5" "{\\LFRONT ELEVATION}" "")
(command "-mtext" "500,-5" "s" "notes" "j" "tl" "c" "n" "500,-5" "{\\LSIDE ELEVATION}" "")
(command "-mtext" "500,495" "s" "notes" "j" "tl" "c" "n" "500,495" "{\\LFRONT ISOVIEW}" "")
(command "-view" "_top")
(command "zoom" "e")
(setvar "cmdecho" 1)
(command "undo" "end")
)
//first text not showing up