# Thread: Lisp Routine: Decimal to Surveyor Units

1. ## Lisp Routine: Decimal to Surveyor Units

Hi, Does anybody have a Lisp Routine that can convert XY Coordinate (0,0,0) to Surveyor Units (N 0d00'00" w)?

When I ID a point I need it in Surveyor Units not Decimal.

Thanks

2. ## Re: Lisp Routine: Decimal to Surveyor Units

I'm not following what you're looking for here -- The example you gave is an angular value, and there's no possible way to get from an ID command on a point (X and Y coordinates) to a bearing or angle.

Now if you want to get Northings and Easting coordinate values, that's different. Presuming North is up on your drawing, then the Y value is N and the X value is E. in other words, to convert

Command: id
Specify point: X = 33.4837 Y = 17.7333 Z = 0.0000

to NE format, it's
N 17.7333
E 33.4837

3. ## Re: Lisp Routine: Decimal to Surveyor Units

I'm not following what you're looking for here -.... to convert

Command: id
Specify point: X = 33.4837 Y = 17.7333 Z = 0.0000

to NE format, it's
N 17.7333
E 33.4837
OK, but what I need is something that converts

these
N 17.7333
E 33.4837

to this
(Y=N) 17d43.0'59.88"
(X=E) 33d29.0'1.32"

Thanks

4. ## Re: Lisp Routine: Decimal to Surveyor Units

It looks like you are trying to convert to longitude and latitude. AutoCAD cannot do that, but I believe AutoCAD Map 3D can.

5. ## Re: Lisp Routine: Decimal to Surveyor Units

Originally Posted by Opie
It looks like you are trying to convert to longitude and latitude. AutoCAD cannot do that, but I believe AutoCAD Map 3D can.
I guess that is what it seems like. I am trying to find out if there was anything like what I'm searching for out there.

Will it be possible to do a Lisp (or VBA for that matter) for something like this?

Thanks

6. ## Re: Lisp Routine: Decimal to Surveyor Units

Originally Posted by Opie
....but I believe AutoCAD Map 3D can.
So, Autocad Map 3D can give you coordinates in Long & Lat as well as Northing & Easting, Right?

I searched all the features for it in the Autodesk website but did not find any to indicate that. It only states that it is used for "coordinate geometry". But what coordinate?Can any body who uses this program please reply and tell me that it does or not give Long & Lat?

Thanks

7. ## Re: Lisp Routine: Decimal to Surveyor Units

I had a go with standard ACAD. Attached is a file where the units are set to degrees & minutes, and a node is noted with a multi leader, and feild text.
Is this sort of what your looking for?

8. ## Re: Lisp Routine: Decimal to Surveyor Units

Originally Posted by Firmso
OK, but what I need is something that converts

these
N 17.7333
E 33.4837

to this
(Y=N) 17d43.0'59.88"
(X=E) 33d29.0'1.32"

Thanks
In the drawing uints dialog (Format>Units) change your angle type to "Degrees,Minutes,Seconds".

9. ## Re: Lisp Routine: Decimal to Surveyor Units

Originally Posted by Firmso
Can any body who uses this program please reply and tell me that it does or not give Long & Lat?

Thanks
LL (in decimal form) are simply decimal numbers, and you can enter decimal numbers in AutoCAD to plot points. As mentioned in your other thread, depending on what you want to do with these points afterwards, you may need Map or even Civil 3D.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•