I tried Jeff and John's suggestions. I appreciate the time that everyone took to reply. But I have a couple of concerns. The code that Jeff provided is running VERY slow (I asked for the coords for ONE point and it took like 15-20 seconds. And I'm on a Dual Pentium P4 with 1 GB of ram and more than 50GB free HD space--so I doubt it's the speed of the PC. In addition to the speed, it seems to be returning WRONG information. I asked for the coords for point #563. It returned Northing: 518103.61
Easting: 1990070.63 Elevation: 59.41. However If I ID on the node in my drawing OR use "List Points" from the menu, this point has the coords of X =
1990083.89 Y = 518057.73 Z = 59.67 (LIST Points DOES return the same coords).
When I run the code from John's web site, it returns (0.0 0.0 0.0) for the same point number--although it is VERY fast. The code from John's page is as follows:
;downloaded from the "Freebies" second of
www.cadlantic.com (defun EastNorthToXY (p / AeccApp AeccDocs AeccDoc AeccUtil) (if (not *acad*)(setq *acad* (vlax-get-acad-object))) (if (and (setq AeccApp (vl-catch-all-apply 'vla-getinterfaceobject (list
*acad* "aecc.application")))
(not (vl-catch-all-error-p AeccApp))
(setq AeccDocs (vl-catch-all-apply 'vlax-get (list AeccApp "Documents"))) (not (vl-catch-all-error-p AeccDocs)) (setq AeccDoc (vla-item AeccDocs 0)) (setq AeccUtil (vl-catch-all-apply 'vlax-get (list AeccDoc "Utility"))) (not (vl-catch-all-error-p AeccUtil)) (vlax-method-applicable-p AeccUtil "EastNorthToXy") ) (vlax-invoke AeccUtil "EastNorthToXy" p) )
)