Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all!
Could someone help me please?
I am trying to made a routine that will change VIEWRES on the startup, if it is different from what I want. If not, the routine does nothing. But it seems that the routine is changing always...
(defun CHVRS ()
(if
(/= (cdr (assoc 72 (dictsearch (namedobjdict) "AcDbViewportTableRecord"))) 100) ;I am not sure here, I made this after some cad forums research...
(progn
(command "._viewres" "Y" 100)
(princ "\n ** Viewres changed to 100 **")
);progn
(princ "\n ** Viewres is already 100 **")
);if
(princ)
);defun
(CHVRS)
Thanks!
Solved! Go to Solution.