Jump to content

Importing Coordinates into AutoCAD


lewissheen24

Recommended Posts

Hello,

 

I am having difficulty importing coordinates into AutoCAD 2011.

 

The formats i am trying import are CSV and TXT files.

 

Is there any quick ways to do this?

Link to comment
Share on other sites

BIGAL - I would like the coordinates to be marked by a cross and have a label next to them, so when i set the points out i know which is which.

 

Also would you know how to export coordinates of points that i pick the centre of.ideally so i can put them into a excel sheet and download them to the survey instrument.

 

I am a AutoCAD novice so any help would be greatly appreciated, and depending how complicated the process is i may need a step by step guide.

Link to comment
Share on other sites

What you want to do can be easily done in any survey software package, although AutoCad is not the right tool for the job. You would be better off using AutoCad Civil 3D or any other survey/civil program for importing/exporting points from equipment, survey calcs, creating DTMs etc.

Link to comment
Share on other sites

Best way is if you want a cross and a lable is to use a block with attributes the advantage is then you can do step 2 very easy find certain block points and export the data CSV this you can read straight into most instruments.

 

Have a look at Lee's ptmanager first and if it doesn't do what you want come back, also let us know if it does meet your needs. Threre is heaps of point stuff out there.

Link to comment
Share on other sites

Ok cheers. I have sorted how i show the x,y coordinates, so they show like this:

 

X = ........

Y = ........

 

I am trying to do the lee-mac - writecsv http://www.lee-mac.com/writecsv.html , but it is coming up with an error.

 

Select objects: 1 found

Select objects: ; error: no function definition: LM:LST->CSV

 

All i have done is added this code to the command bar.

 

 

(defun LM:WriteCSV ( filename data / file sep )
   (if (setq file (open filename "w"))
       (progn
           (setq sep (ascii (cond ((vl-registry-read "HKEY_CURRENT_USER\\Control Panel\\International" "sList")) (","))))
           (foreach line data
               (write-line (LM:lst->csv line sep) file)
           )
           (close file)
           t
       )
   )
)

 

any help would be good

Edited by SLW210
Code TAGS!!
Link to comment
Share on other sites

Got it working finally. thanks guys.

 

Is there any way i can export a coordinate with a name so it appears like this:

 

Name.....X........Y........Z.........

 

As always any help would be good.

Link to comment
Share on other sites

A csv file can be in any format POINT X Y Z DESCRIPTION

PENZ

PNEZD

ENZD

 

You can start with simpler import points routine and customise one to suit your needs but have you really looked at the options within Lee-mac's point manager particuarly the block option.

Link to comment
Share on other sites

1st Simplest way is to create a block with the marker and 3 attributes. Label, X & Y set up the way you want them to look

 

In excel you can make the commands to create this all in one step

 

Using contenate you join the relevant columns to make 1 single column

 

Insert yourblockname x,y rotation scalex scaley scalez attrib1 attrib2 attrib3

Insert yourblockname x,y rotation scalex scaley scalez attrib1 attrib2 attrib3

Insert yourblockname x,y rotation scalex scaley scalez attrib1 attrib2 attrib3

 

This example inserts points just copy column F and paste onto command line.

 

Excel points.jpg

 

Do one manully and write down every question that autocad asks this what you need to duplicate.

 

2nd part export is even easier if you have made the blocks just use DATAEXPORT it will do it all for you.

Link to comment
Share on other sites

I can make the block with the attributes, the rest i can't understand .

 

Your going to have to provide instruction step by step, not missing out any steps.

 

Treat me like a idiot!

Link to comment
Share on other sites

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...