Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

ODO18
663 Vistas, 7 Respuestas

Script to Place Point in Zoom Extents and Extract X,Y and/or Lat/Long

Trying to do some file data mining.  My idea is to extract into a txt file the dwg name and location along with the datum and x,y of a point and/or lat/long.  My script deletes and purges everything out of the dwg except our property line and then zooms to extent and then I execute the following point placement and data extraction.  I am trying to use the acconsolce for this so commands are limited that I can use.

 

I am stuck on finding a way to place point in middle of zoom extents and then getting the x,y of that point.  This is what I have for the calling of the data I need which includes file name, location, and file datum:

 

POINT ???? 

(setq ftkeepname (open "c:\\users\\xxx\\Documents\\Filename.txt" "w"))
(write-line (strcat (getvar "dwgprefix") (getvar "dwgname") (getvar "cgeocs") ftkeepname)
(close ftkeepname)

 

Any ideas?  Thank you

Etiquetas (1)
Etiquetas (2)