.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Changing Coordinate system

1 REPLY 1
Reply
Message 1 of 2
giskumar
370 Views, 1 Reply

Changing Coordinate system

Hi,

 

I am having some drawings in CA-III Coordinate system and i want to change them in to UTM83-10F.

Please let me know how can i handle this in .net.

 

Thanks in Advance,

Kumar.

1 REPLY 1
Message 2 of 2
fieldguy
in reply to: giskumar

If you search "coordinates" in the map 3d forum >>here<, there is some code available.  If you still have questions, I suggest you post there.

 

Here is some vb to get all coordinate systems - there were more than 5,000 systems available when this was done for Map 3D 2011.

 

Private Sub GetCoordinateSystems(ByRef systemcounter As Integer)
        Dim msg As String = "GetCoordinateSystems" & vbCrLf
        Dim csyssysfac As New MgCoordinateSystemFactory()
        Dim csyssyscat As MgCoordinateSystemCatalog = csyssysfac.GetCatalog()
        Dim csyssysdic As MgCoordinateSystemDictionary = csyssyscat.GetCoordinateSystemDictionary()
        Dim csysenum As MgCoordinateSystemEnum = csyssysdic.GetEnum()
        Dim csyscount As Integer = csyssysdic.GetSize()
        Dim csysnames As MgStringCollection = csysenum.NextName(csyscount)
        Dim csysname As String = Nothing
        Dim csys As MgCoordinateSystem = Nothing
        Dim csystype As Integer = 0
        systemcounter = 0
        For i As Integer = 0 To csyscount - 1
            csysname = csysnames.GetItem(i)
            csys = csyssysdic.GetCoordinateSystem(csysname)
            csystype = csys.GetType()
            systemcounter += 1
        Next
        msg = msg & "systems counted " & systemcounter
        'MsgBox(msg)
    End Sub 'getcoordinatesystems

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost