When you select appropriate entities, you are asked to enter a filename using AutoCAD's regular File dialog box, as shown in figure 3. If you don't include any polylines or points in your selection, the routine prompts you to try again. The program first prompts you to select objects. plist.lsp makes a point list you can open in Microsoft Excel. After you load the program, AutoCAD prompts you to enter PTS to start.įigure 2. In the Load/Unload Applications dialog box, select the plist.lsp file from the support directory where you installed it, then click Close. From the AutoCAD tools menu, choose Load Applications, or enter Appload at the AutoCAD Command prompt. This month's solution is an update that includes polylines and point entities and uses the more modern approach of object-oriented programming with ActiveX objects, methods, and properties.ĭownload the AutoLISP file from Cadalyst's CAD Tips site and save it in the AutoCAD support directory. That program, vertext.lsp, was suitable for early versions of AutoCAD. I wrote an AutoLISP Solution more than two years ago (Cadalyst, July 2000) that extracted the vertex points from polylines. Of points selected from the drawing in Figure 1. AutoCAD drawing with polylines and points. Figure 2 shows a Microsoft Excel worksheet that displays the x,y,z locationsįigure 1. Figure 1 shows an AutoCAD drawing with an assortment of polyline types and some point entities. Plist.lsp lists the points grouped in this order: lightweight polylines, 2D polylines, and point objects. The AutoLISP solution plist.lsp lets you select lightweight polylines, 2D polylines, or point objects, then makes a comma-delimited text file suitable for opening in Microsoft Excel. Pedro Gerstberger e-mailed a request to export x,y,z points from either polylines or AutoCAD point entities. AutoLISP Solutions: Export point coordinates 30 Nov, 2002 By: Tony Hotchkiss Create a comma-delimited text file of polyline and point coordinates.
0 Comments
Leave a Reply. |