Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Importing XYZ data

15 REPLIES 15
SOLVED
Reply
Message 1 of 16
Anonymous
29095 Views, 15 Replies

Importing XYZ data

please tell me there is an easy way?  i can't believe i even have to write a post to ask this, isn't autocad a design software program?  and importing xyz data isn't available without resorting to some complex lisp routine or something equally painful?  please say i'm wrong ... sorry for the attitude just hoping for some help here with this, i have 2010

15 REPLIES 15
Message 2 of 16
Murph_Map
in reply to: Anonymous

With Civil 3d or Map 3d there are commands/tools to do it, with vanilla AutoCAD one way is this.

http://map3d.wordpress.com/2006/06/25/points-from-a-text-file/

Murph
Supporting the troops daily.
Message 3 of 16
dgorsman
in reply to: Anonymous

You may want to elaborate on what your "XYZ" data is.  If its survey points, then as noted Map3D or Civil3D would be the tool of choice.  If this is LIDAR/lasergrammetry data, then depending on the version of your software you may need additional third-party software such as Lecia Cloudworx. 

 

Either way, both are well outside the realm of basic drafting that vanilla AutoCAD is built for.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 4 of 16
hmsilva
in reply to: Anonymous

wings1080,

 

in addition to what Murph and dgorsman already said, and without knowing your xyz data format, but if the data is a text file (csv, txt...) then perhaps you may consider change it to a .scr file, and then use the command script to import your xyz data to de dwg. The .scr, must have this format (the xyz must be separated by a comma, and a space at end, or an empty line between xyz and at the end)

i.e.

_.Point
10.00,10.00,10.00
15.00,15.00,15.00
20.00,20.00,20.00

 

or

 

_.Point
10.00,10.00,10.00


15.00,15.00,15.00


20.00,20.00,20.00

 

Before using the script command, turn the Snap off...

 

HTH

Henrique

EESignature

Message 5 of 16
Anonymous
in reply to: Murph_Map

this worked perfectly thanks!

Message 6 of 16
Anonymous
in reply to: hmsilva

thanks for writing, all good now

Message 7 of 16
hmsilva
in reply to: Anonymous

You're welcome, wings1080
glad you got a solution

Henrique

EESignature

Message 8 of 16
Murph_Map
in reply to: Anonymous


@Anonymous wrote:

this worked perfectly thanks!



You're Welcomed.

Murph
Supporting the troops daily.
Message 9 of 16
oransen
in reply to: Anonymous

You may want t have a look at Pointor  it will create a DXF file for you and you bring that into AutoCAD.

Message 10 of 16
Anonymous
in reply to: hmsilva

Hello,

 

I'm trying to follow these instructions and somehow I'm not able to import the XYZ point cloud.

Do you think you could take a look at the attached file and see if it has the correct format? I'm using Autocad 2014

Thanks in advance for your help,

 

Jose 

Message 11 of 16
Patchy
in reply to: Anonymous

It works Ok.

 

Save your text file as CLOUD.SCR

then use command SCR

Find your file and a few Enters should bring in your points.

 

Capture.JPG

Message 12 of 16
Anonymous
in reply to: Patchy

Thank you. It worked perfectly!

 

Do you know if there is a way to directly connect these points with a spline without having to do manually?

 

Solidworks has a similar option called spline through XYZ but I haven't been able to find it in AutoCAD.

 

Thanks in advanced for your time

Message 13 of 16
Patchy
in reply to: Anonymous

Lee Mac has a program to import points and draw polylines; in his web site it also explains how to use autolisp.

 

http://www.lee-mac.com/ptmanager.html

 

 

Message 14 of 16
sthompson1021
in reply to: Anonymous

Just modify your script file to use SPLINE instead of point

Message 15 of 16
Anonymous
in reply to: sthompson1021

The spline command worked perfectly.

 

Thank you all so much.

 

Jose

Message 16 of 16
nodink
in reply to: Anonymous

My way doesn't need LISP prog exp. Here's my solution:

Open your file, yourfile.xyz, use Notepad app or something similar. It should look like this when opened:

 

1st, 

7630303.50 699947.50 -35.70
7630096.50 700064.50 -34.32
7630270.50 700293.50 -35.39
7630607.50 700114.50 -36.13
7630060.50 700149.50 -35.76
7630298.50 700222.50 -34.39
and on and on...

2nd, perform Find-Replace All:  replace all spaces to ,

3rd, perform Find-Replace All:   replace all 763 to Point 763

Should look like this:

7630303.50,699947.50,-35.70
point 7630096.50,700064.50,-34.32
point 7630270.50,700293.50,-35.39
point 7630607.50,700114.50,-36.13
point 7630060.50,700149.50,-35.76
point 7630298.50,700222.50,-34.39
point 7630243.50,699730.50,-11.86
point 7630308.50,699874.50,-35.49
point 7629804.50,700860.50,-37.61

and on and on...

4th, Save yourfile.xyz

Lastly, rename yourfile.xyz to yourfile.scr

Open Acad>Script>yourfile.scr

and that's it.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost