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.
|