- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all
I am looking for some guidance. I have this lsp that I made. It does work. What I want to do is place a block in either model or layout. If it is placed in model space I want to use the dimscale as the block scale, and if it is placed in layout, I want to use 1 as the block scale. I know annotation scale will take care of this but I want to do this without using annotation scale. It works fine in model, but in layout it will first place the block at 1, but then right away, because I have the command in a second time, it will want to place the block a second time at the dimscale when in layout. Is there a way to clean this up or a better way to do this? The block is not annotative.
(defun C:TestPlaceElevationMark ()
(if(=(getvar "CTAB") "Model")
(setq xscalestr (getvar "dimscale"))
(command "insert" "C:/Data/_Library/Blocks/Common/Annotation/Dyn_Elevation.dwg" pause 1 0)
);end if
(command "insert" "C:/Data/_Library/Blocks/Common/Annotation/Dyn_Elevation.dwg" pause xscalestr 0)
)
Solved! Go to Solution.