Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have two dwg files open "A" and "B". I am running a lisp in "A"
Can anyone explain to me why in the following snip, the line gets drawn in "B" but the coordinate system gets set in "A" instead of "B"?
Thanks;
Nick
(vlax-for Doc (vla-get-Documents (vlax-get-acad-object))
(if (= (vla-get-name Doc) "B.dwg")
(progn
(vla-activate Doc)
(vlax-put-property (vlax-get-property zonesettings 'coordinatesystem) 'cscode "PA83-NF")
(vla-AddLine
(vla-get-ModelSpace Doc)
(vlax-3d-point '(0 0 0))
(vlax-3d-point '(5 5 0))
);AddLine
);progn
);if
);vlax
Solved! Go to Solution.