Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Forgive my archaic lisp routine, feel free to help and refine it..
But I was wondering if there was a way to assign a named UCS to a named view through the command line. (about line 37)
(defun c:NVVF (/ echo ept pt1 pt2 pt3 tx1 *ERROR*)
(defun *Error* (strErr)
(setvar "expert" ept)
(setvar "CmdEcho" echo)
(princ)
) ;_ closes ERROR EXCEPTION defun
(setq ;saves current SYSTEM VARIABLES
ept (getvar "expert")
echo (getvar "CmdEcho")
)
(setvar "expert" 4)
(setvar "CmdEcho" 0)
(Command "_.ucs" "world")
(setq
pt1 (GETPOINT "\nPick Bottom Left Corner of View Frame: ")
pt2 (GETPOINT "\nPick Bottom Right Corner of View Frame: ")
)
(command "ucs" "3" pt1 pt2 "")
(setq
pt3 (GETPOINT "\nPick Top Right Corner of View Frame: ")
tx1 (GETSTRING T "\nEnter view name to save: ")
)
(command "_.ucs" "named" "save" tx1)
(COMMAND "PLAN" "")
(COMMAND "ZOOM" "0,0" pt3)
(command "-view" "W" tx1 "0,0" pt3)
(princ "\n***Named View Created***")
(*error* nil)
;quiet exit
(princ)
)
Jon Baker | Land Development & Infrastructure Design Manager
Alignment Design Group | Denver | Colorado
Civil 3D 2025 | Windows 11
Alignment Design Group | Denver | Colorado
Civil 3D 2025 | Windows 11
Solved! Go to Solution.