Hi I need a lisp for make viewports has same view, and save and load the view.
But view means not command "view" It means like command "zoom".
I have many viewports in model space and each has different size.
I can make them has same view, but different scale.
So I need to unlock viports and matchprops them.
In conclusion, I want to make viewports has same view and same scale in one step.
(And i will save the value in the registry for load the view another dwg. But it can myself)
Thank you for read this.
example lisp
(defun c:t1 ( / ) ;; Save View
(setq _vctr (getvar 'viewctr))
(setq _vsize (getvar 'viewsize))
(vl-propagate '_vctr)
(vl-propagate '_vsize)
(princ)
)
(defun c:t2 ( / ) ;; Load View
(if (or (= _vctr nil) (= _vsize nil))
(princ "View Empty.")
(vl-cmdf "_.zoom" "c" _vctr _vsize)
)
(princ)
)
1. save the original view
2. load saved view
3. matchprops for same scale (I want to delete this step)