[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.
Import Coordinates
Tip# 3505 By Shahrokh Sobhani On 10-Oct-2010
4
Rated By 1 users Downloaded : 1271
Categories : Points, Single-Line Text
Software type : AutoCAD 2011
Rename File To : WRITEELEV/,WRITEELEV/sample_data.txt,WRITEELEV/write-elevation.lsp
Create points by importing coordinates as text objects.

This tip allows you to import an ASCII file of coordinates into an AutoCAD drawing as text objects. Each text string contains the z elevation from the file, and it is located so that the decimal point of the text appears at the x, y, and z location specified in the file. Many surveyors like the ability to place the decimal point at the location of the point so leaders and other points are not required. To use this routine, load the LISP file and type in the command WT. The textstyle and layer used for the output are created if necessary, and this is easily changed to fit your needs. Tip author Shahrokh Sobhani has also included a sample ASCII file for your use.

 

 

Average Rating:
4


User comments
Comment by Lee,David
Posted on 2010-10-22 00:17:43
This lisp routine works but, the X coordinate of the inserted text [insertion point] does not match the X value from the file. Anyone has the same problem?
Comment by McSwain,R.K.
Posted on 2010-11-04 17:58:57
David, my description was somewhat incomplete. The text is located such that the decimal point (not the insertion point of the text) is at the coordinate in the file. Many surveyors prefer this method so that a leader or "dot" is not required to show the location of the point.
Comment by Wolf,Shahrokh
Posted on 2010-11-05 08:48:07
David, This is the same Lisp but is modified and inserts the insertion point of texts on X value of data file, as you mentioned. (This is what LDD, Civil 3d and inroads do. None of them inserts the decimal point on X value of data file.) enjoy,
Comment by McSwain,R.K.
Posted on 2010-11-08 12:51:27
The description of this tip has been modified to better describe what it does. Sorry about the initial confusion.
Comment by Lee,David
Posted on 2011-03-03 18:19:29
The revised lsp ruotine sets the Z coordinate of all the inserted points to "0".