[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Find Coordinates of Image Files
Tip# ALSPSOL0107 By Tony Hotchkiss On 01-Jan-2007
Rated By 1 users Downloaded : 790
Categories : Points, Object Properties
Software type : AutoCAD
Rename File To : Tip ALSPSOL0107 0107alispsol-Coords-List.LSP
AutoLISP routine finds coordinates of image files.

Kelly Francis of Salt Lake City requested a routine to produce a text file that lists the name and coordinates of a set of image tiles. The image tiles are constructed to fit over a drawing, as in the figure below. The text file must be space-delimited, and the fields are the name of the rectangular tile, the minimum x, maximum y, maximum x and minimum y coordinates for each image tile. COORDS-LIST.LSP also lets you choose the precision of the coordinates. The program automatically selects all rectangles in the current drawing.

Get the Code
Download the COORDS-LIST.LSP file from our Get the Code area and save it in AutoCAD's Support directory. Use the Appload facility by selecting Tools / Load Application, and then select the COORDS-LIST.LSP file from where you stored it.

How to Use the COORDS-LIST.LSP Code
To start the program, enter COO and you will see the Precision prompt. Enter the required precision as 0, 0.0, 0.00, etc. for the number of decimal places you want displayed in the output file. You may also leave off the 0 before the decimal point and enter 0, .0, .00, etc. instead. You will then see the Results File dialog box.



Average Rating:

User comments