Access to a drawing's coordinate system definition Map 3D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
Land Surveyor
Bureau of Land Management
California State Office