Message 1 of 16
How to save insert scale factor upon quiting dwg session and use the same scale factor working back to the same dwg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We have this routine to insert block with preset scale factor.
(defun c:ib () ;Insert block name
(if (null _insscl) (setq _insscl 1.0))
(setq BNAME (getstring T (strcat "Enter block name" "<" (getvar "INSNAME") "> :")))
(command "insert" BNAME "s" _insscl pause)
)
;
(defun c:ip (/) ;Set insert scale factor
(if (null _insscl) (setq _insscl 1.0))
(setq i (getreal (strcat "\nEnter scale factor <" (rtos _insscl 2 3) ">: ")))
(if (/= i nil) (setq _insscl i))
)
My goal is to save value I entered for 'ip' (scale factor) upon quitting drawing session and use the same value for my custom command 'ib' when reopening the previous drawing. How can I set to remember that value until someone change it?
Thank you!