PDA

View Full Version : VBA Script for Coordinate Transformation in AutodeskMap



k_senthilnathan
2005-04-29, 05:37 PM
Hi all,

I am looking for a VBA Script that takes a input point in Lat/Lon and converts it to State Plane Coordinates with WGS 84 datum or any other user specified datum. Is it possible to do this programmatically using VBA. Any help would be greatly appreciated.

Thanks
Nathan.

MHultgren
2005-04-29, 11:12 PM
Check out Metcon on google. it will do this for you and will convert from\to different CS's as well.

k_senthilnathan
2005-04-30, 11:29 AM
Hi Mark Hultgren,

Thanks for you reply. I want to perform coordinate transformation using VBA routines in Autocad map 2004. I don't want some external software to do this. If you could throw any light it would be greatly appreciated.

Thanks again

Nathan

MHultgren
2005-04-30, 04:12 PM
Nathan,

Why would you want to reinvent the wheel, so to speak? Map will already do this for you. Check out the following thread.
http://forums.augi.com/showthread.php?t=17193&highlight=coordinate+transformation

k_senthilnathan
2005-05-01, 01:19 PM
Hi Mark Hultgren,

What you say is absolutely true. But I want to write a route that gets NMEA strings from GPS comport and plot the gps points on the screen in real-time. I want to use this for my field work. So when I get the GPS points which is in lat/lon, I would like to transform lat/lon to any user defined coordinates (based on the base map) to plot them on screen. That is why I am trying to see if I can do coordinate transformation programmatically (because I wanted to plots the gps points in real time).

Thanks
Nathan

JeremiahM
2005-05-02, 05:14 PM
Sorry I can not offer any help, but once you have it running I would like to see it work and possibly purchase it. We use Trimble mapping grade survey equipment and would like to see it real time in the field, I know that Autodesk Envision could do something like that with Trimble equipment, but alas it was retired...

Jeremiah

MHultgren
2005-05-02, 07:11 PM
Jeremiah,

Where did you hear that Envision was retired? Here is the link to it.
http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=3014557

JeremiahM
2005-05-02, 08:19 PM
... interesting, guess i was wrong, I wonder when it will get an update. At AU 03 I know they showed some future Map that used what seemed to be parts of the envision product, which would be really cool...

Jeremiah

MHultgren
2005-05-02, 09:06 PM
Jeremiah,
If you purchased Civil Series when they had that offered, they included Envision 8 that would let you use LandXML data to generate some pretty slick visualizations. Not sure if it is still offered as part of a "Package" or not. But at least they still have it available.

Jmurphy
2005-05-17, 01:18 PM
I'm not sure about the VBA API exposing the tools to do this but I know the Vlisp API has access to transfer the points over to another coordinate system.