Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

insert text point file

Status
Not open for further replies.

turbo2

Mechanical
Jun 19, 2001
2
DOes anyone by chance have a lisp routine that will read in a text file of XYZ values and make points?

Many thanks,

Turbo2
 
Replies continue below

Recommended for you

Don't have one but if you want me to, I could write one based on your specs.
 
All I'm looking for is a lisp routine that will read a file of points in the following format (signed + and -)

+123.1234 -456.4567 +789.7890

And make a point at that location (X Y and Z) - preferably relative to the current UCS (as oposed to WCS) but enev that is not necessary.

I once dabbled in Lisp 5 years ago, but have forgotten so much.

I thought a file may already exist.

Thanks,

Turbo2
 
One way that works, but its a long workaround is to use the Soikka field book program. (download at
This will allow you to import a text file and then export it as a dxf file that AutoCad will import.

Problem is that it plots the point and writes the elevation near the point not using the decimal in the elevation as the point. (not too bad to change for a few dozen shots but impossable to do without error on several hundred survey points.) Rick Kitson MBA P.Eng

Construction Project Management
From conception to completion
 
Turbo2,
I think you can do this with a script file easier than lisp. Looks like the text file is almost in the format needed for a script file, but need to have commas between the xyz values. Could use editor to replace spaces with commas, or import text file into Excel, parse points into columns, save as a comma delimited file. Now save with a .scr extension for a script file, add first 2 lines of:

multiple
point
x1,y1,z1
x2,y2,z2
etc.

Then run script file from within AutoCAD.
Voila! (I hope)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor