I understand how to convert coordinate using the ade_proj* functions.
Problem is, has anyone noticed that there is not a documented function to get a list of the CSCODE's so you can set the source and destination coordinate systems?
Here are the ADE_PROJ* functions in the documentation:
Identifies the category that a coordinate system belongs to.
Gets information about a projection system.
Gets the project drawing's coordinate system code.
Lists available coordinate system categories.
Lists available coordinate systems in a given category.
This only lists the coordinate system's desciption, not the code!
Computes new coordinates for a source point.
Computes new coordinates for a destination point.
Sets the destination coordinate system.
Sets the source coordinate system.
Sets the project drawing's coordinate system.
Nowhere in the documentation does it provide a list of the cscode's needed to make these functions work.
Solved! Go to Solution.
Yes, I noticed some time back but I only needed a couple and I already new the codes.
Since I was never wedded to lisp and grew tired of the lack of documentation(.e.g ade_errsetlevel) I have since had much better success with using OSGeo.MapGuide within my .NET applications. MapGuide/Map3d have a of CS-Map implementation - MENTOR. In addition, it can be used outside a Map3d process.
It seems to have EVERYTHING.
If you are interested let me know and I will post a snippet to get u started.
I have used the FDO with .NET to query from FDO source or save back to FDO source into AutoCAD Map 3D 2010.
This issue is dealing with existing LISP code and adding some functionality to it to for the coordinate conversion.
This is going to have to be a LISP solution. If anyone knows of an ADE_PROJxxxx a function that would return a list of coordinate system codes match to their descriptions (a dotted pair list?) That's what should be in there and it's not documented.
Just found out, the "descriptions" are the codes.
The ade_projsetwscode will return T if the string is valid. It is not limited to 8 characters as stated in the ADE Autolisp documentation.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register