.NET

Reply
Active Contributor
giskumar
Posts: 44
Registered: ‎12-06-2010
Message 1 of 2 (173 Views)

Changing Coordinate system

173 Views, 1 Replies
08-14-2012 05:07 AM

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.

Valued Mentor
fieldguy
Posts: 367
Registered: ‎03-31-2005
Message 2 of 2 (153 Views)

Re: Changing Coordinate system

08-14-2012 10:13 AM 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

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community