Access to a drawing's coordinate system definition Map 3D

Access to a drawing's coordinate system definition Map 3D

jleavitt
Advocate Advocate
247 Views
0 Replies
Message 1 of 1

Access to a drawing's coordinate system definition Map 3D

jleavitt
Advocate
Advocate

I'm doing a query to import lines from an existing drawing file.  The lines come in just fine, but I need to know the basis for their coordinates (wscode) and I need to be able to do it with visual lisp.

 

I can open the existing drawing in an inactive state by:

 

(vla-open (vla-get-documents (vlax-get-acad-object)) (findfile (getfiled "SELECT DRAWING FILE: " "" "DWG" 8)) :VLAX-TRUE)

 

and then binding it to a variable:

 

(setq ref (vla-item (vla-get-documents (vlax-get-acad-object)) (1- (vla-get-count (vla-get-documents (vlax-get-acad-object))))))

 

which, basically, gives me access to the entire reference drawing.

 

the WSCODE variable should be stored somewhere in there, but where?  I can't access it with (ade_projgetwscode) without making the drawing active, which defeats the automation process.  I would write a routing to extract the information from the variable if only I knew where it was.

 

Thank you.

 

J Leavitt

J Leavitt, PLS
Land Surveyor
Bureau of Land Management
California State Office
0 Likes
248 Views
0 Replies
Replies (0)