Jump to content

Co-ordinates of nodes into a text file


Recommended Posts

Posted

Hello,

 

I wonder if you guys could help me with a problem.

 

For use in another piece of software, I need to be able to get from Autocad the co-ordinates of a "mesh" that I will generate. The co-ordinates I need are nodes, or the intersections of lines. As a simple example I have drawn a mesh below using the + sign:

 

++++

++++

++++

++++

 

What I need are the co-ordinates of the centres of the crosses.

I need it to have one column for x co-ordinates and one for y (and z if possible).

 

I have seen someone else generate this data but I unfortunately was unable to ask him how he did it.

 

If possible it would also be nice to describe the connections between the nodes. By this I mean if each node had a number, then a connection may be 1 to 3 or 5 to 9. If I could generate this data into a text file that would be excellent.

I have a good knowledge of most of the packages features, but i have never been able to look into data generation. A step by step guide would be much appreciated. I am using 2010.

 

Thanking you in advance,

 

Phil

Posted

Welcome in the forum, Phil!

 

I don't have AutoCAD 2010, but here is how I would do it in 2006.

 

It sounds to me quite complicated to do it on a "mesh" generated from lines. I could do it with real meshes.

So, to make the long story short: can you transform those lines in a mesh? After that you could use a Lisp routine to save the nodes in a text file.

If you can't transform it, there is a way by hand: set the Osnap to Intersection and type in the command line ID. Press enter and click the first intersection. When you move the mouse cursor close to that point, it will jump in the desired position due to the Osnap. The command line will print the coords. Press enter to repeat the command, and click the next intersection...

When finished, copy the relevant part from the text window and paste it in a word processor. Edit the text to suit your needs.

Posted

If you just want the coords of the mesh points just do it in excell !

 

You only need the co-ords of 1 pt and the x and y spacing then save as a csv if you need to export out.

 

Only prob will only work on square grids.

Posted

This should help get the ball rolling: :)

 

Pnt2CSV.gif

 

You will need my AT:WriteToFile subroutine, it's in the Subroutines link I've posted in my signature.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...