Hi JamCAD
Tested the script as indicated but got this error:-
So i took out this 3 lines(setq osnapsave (getvar "osnap")) (setvar "osnap" 0)
(setvar "osnap" osnapsave)
And also added "1" for the Y scale
This script now is this:-
- ATTREQ 1ATTDIA 0(foreach layout (layoutlist) (setvar "ctab" layout) (if (/= 1 (getvar "cvport")) (command "pspace")) (command "-insert" "d:\\new block.dwg" "2527.1006,827.3694" "1" "1" "0"))(setvar "osnap" osnapsave)savey
And manage to get it to work. All layouts regardless of name has the new block inserted.
Thanks bro.
But then kindly advise the purpose of the 3 lines of code & if it is necessary to prevent future errors & how to incoporate it to the script such that it can work correctly.
Thanks again.
|