<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Transform object Between Coordinate System in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7698320#M28054</link>
    <description>&lt;P&gt;I am not sure where the difference bwtween using AutoCAD Map built-in command/operation and using Platform API's calculation was from, in your case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just did a quick verification, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. I have a shape file created in projected coordinate system "NAD83.BC/Abers", in which a point's coordinate is X=1233743.880, Y=1196519.261.&lt;/P&gt;
&lt;P&gt;2 I want to convert this point into projected coordinate system "UTM83-10".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, here is what I did in different ways and the results are all the same, the converted UTM83-10 coordinate is X=545837.500, Y=6173925.001. (well, both of the coordinate systems have unit in "METER", thus the converted number may have tiny difference in the 5th, or 6th decimal, which is ignorable):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. I start a blank drawing, assign UTM83-10 coordinate system to the blank drawing. Then I use "MapImport" command to import the shape into the drawing. Then I checked the point's coordinate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. I start a blank drawing, assign it UTM83-10 coordinate system, drag the shape into the drawing, which is equivalent to use MaFDO connection to load FDO data into AutoCAD MAP. This also correctly convert the NAD83.BC/Abers coordinate into UTM83-10 coordinate, the same as 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. I wrote code to programmatically convert the coordinate with Platform API, just as you did (with actually moving the DBPoint). the result is the same. here is the code anyway:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;using System;
using Autodesk.AutoCAD.Geometry;
using OSGeo.MapGuide;

namespace MapPlatformCsTranform
{
    public class CoordConverter
    {
        public static void Convert(string fromCs, string toCs, Point2d fromPoint, out Point2d toPoint)
        {
            toPoint = Point2d.Origin;

            var factory = new MgCoordinateSystemFactory();
            var catalog = factory.GetCatalog();
            var coordDic = catalog.GetCoordinateSystemDictionary();

            MgCoordinateSystem  fromCoord = null;
            if (coordDic.Has(fromCs)) fromCoord = coordDic.GetCoordinateSystem(fromCs);
            if (fromCoord==null)
            {
                throw new InvalidOperationException(
                    $"Coordinate system {fromCs} is not available in AutoCAD Map.");
            }

            MgCoordinateSystem toCoord = null;
            if (coordDic.Has(toCs)) toCoord = coordDic.GetCoordinateSystem(toCs);
            if (toCoord == null)
            {
                throw new InvalidOperationException(
                    $"Coordinate system {toCs} is not available in AutoCAD Map.");
            }

            var coordTransform = factory.GetTransform(fromCoord, toCoord);
            var mgCoord = coordTransform.Transform(fromPoint.X, fromPoint.Y);

            toPoint = new Point2d(mgCoord.X, mgCoord.Y);
        }
    }
}&lt;/PRE&gt;
&lt;PRE&gt;using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.Geometry;
using CadApp = Autodesk.AutoCAD.ApplicationServices.Application;

[assembly: CommandClass(typeof(MapPlatformCsTranform.MyCommands))]

namespace MapPlatformCsTranform
{
    public class MyCommands 
    {
        [CommandMethod("CalcCoord")]
        public static void RunDocCommand()
        {
            var dwg = CadApp.DocumentManager.MdiActiveDocument;
            var ed = dwg.Editor;

            try
            {
                string sourceCs = "NAD83.BC/Abers";
                string destiCs = "UTM83-10";
                var sourcePoint = new Point2d(1233743.880, 1196519.261);
                CoordConvertion(sourceCs, destiCs, sourcePoint);

                sourceCs = "UTM83-10";
                destiCs = "NAD83.BC/Abers";
                sourcePoint = new Point2d(545837.50, 6173925.001);
                CoordConvertion(sourceCs, destiCs, sourcePoint);

            }
            catch (System.Exception ex)
            {
                ed.WriteMessage("\nError: {0}", ex.Message);
                ed.WriteMessage("\n*Cancel*");
            }
            finally
            {
                Autodesk.AutoCAD.Internal.Utils.PostCommandPrompt();
            }
        }

        private static void CoordConvertion(string sourceCs, string destiCs, Point2d sourcePoint)
        {
            CoordConverter.Convert(sourceCs, destiCs, sourcePoint, out Point2d destiPoint);

            var msg = $"Output point: x={destiPoint.X}, y={destiPoint.Y}";
            CadApp.ShowAlertDialog(msg);
        }
    }
}&lt;/PRE&gt;
&lt;P&gt;I did not try drawing set/attaching&amp;nbsp;approach, but expect the result would be the same. So, whether you use AutoCAD built-in approaches, as I suggested in previous reply, or use AutoCAD platform API to calculate the coordinate, the result should be the same with&amp;nbsp;negligible difference (because the numbers are float point numbers).&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2018 18:32:04 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2018-01-17T18:32:04Z</dc:date>
    <item>
      <title>Transform object Between Coordinate System</title>
      <link>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7688801#M28046</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;this is how I can transform drawing Between Coordinate System see Attachment&lt;BR /&gt;&lt;A href="https://goo.gl/NqAAKt" target="_blank"&gt;https://goo.gl/NqAAKt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ask this first in theswamp.org&lt;BR /&gt;&lt;A href="https://goo.gl/hX5Fr4" target="_blank"&gt;https://goo.gl/hX5Fr4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it poseble to loop over all object in open drawing and fransform Between Coordinate System&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2018 12:32:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7688801#M28046</guid>
      <dc:creator>Sgear</dc:creator>
      <dc:date>2018-01-14T12:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Transform object Between Coordinate System</title>
      <link>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7689080#M28047</link>
      <description>&lt;P&gt;this requires a vertical product like map 3d. check the geospatial platform dev guide&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://docs.autodesk.com/MAP/2014/ENU/Developer_Guides/index.html" target="_blank"&gt;http://docs.autodesk.com/MAP/2014/ENU/Developer_Guides/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2018 17:17:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7689080#M28047</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2018-01-14T17:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Transform object Between Coordinate System</title>
      <link>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7691051#M28048</link>
      <description>&lt;P&gt;It looks like you are talking about transformation between geographic coordinate system, be it between geodedic and projected, or between projected ones.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The simplest way is to use AutoCAD Map/Civil3D built-in approach. Assume you have a drawing with coorinates of one projection, you can do it in different ways (but since you are asking in programming forum, I assume you need to do it programmatically):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. do it with Map's drawing set query, as your unfinished (not working?) project did;&lt;/P&gt;
&lt;P&gt;2. use Map's platform API to calculate the tramsform matrix and move all the entities (this would be bad/tedius to do).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. You can export all entityes in one drawing to shape/SDF, and import he shape/SDF, and then import back into a drawing with the other projected coordinate system;&lt;/P&gt;
&lt;P&gt;4. If you not only know the 2 projections' code, but also have the knowledge of how the 2 projections are defined in AutoCD Map/Civil (there origins and the origin's difference intermed of Northing/Easting, the difference of the angle of the Nortings...), you can easily move all entities in one cordinate system to the other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you&amp;nbsp;use AutoCAD Map/Civil, I'd suggest you use Map's built-in approach, eiterh attaching drawing to query in the entities in other projection, or export/import. Both can be done with AutoCAD Map ObjectARC .NET API.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 14:46:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7691051#M28048</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2018-01-15T14:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Transform object Between Coordinate System</title>
      <link>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7693496#M28049</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 11:44:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7693496#M28049</guid>
      <dc:creator>Sgear</dc:creator>
      <dc:date>2018-01-16T11:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Transform object Between Coordinate System</title>
      <link>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7696352#M28050</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe to quick to close this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. the&amp;nbsp;attachment&amp;nbsp;project works I can transformation between coordinate system no problem there&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tray to move point from one&amp;nbsp;&lt;SPAN&gt;coordinate system to another it is&amp;nbsp;a little difference&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I can use&amp;nbsp;attachment&amp;nbsp;project but I just need to know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;in the Picture&amp;nbsp;attachment you can see the&amp;nbsp;difference&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Blue point I use&amp;nbsp;attachment&amp;nbsp;project&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Read Point I use this code&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;         Dim editor As Editor = Application.DocumentManager.MdiActiveDocument.Editor
            Dim db As Database = Application.DocumentManager.MdiActiveDocument.Database
            Dim trans As Transaction = db.TransactionManager.StartTransaction()

            Dim factory As MgCoordinateSystemFactory = Nothing
            Dim catalog As MgCoordinateSystemCatalog = Nothing
            Dim coordDic As MgCoordinateSystemDictionary = Nothing

            factory = New MgCoordinateSystemFactory()

            catalog = factory.GetCatalog()
            coordDic = catalog.GetCoordinateSystemDictionary()

            Dim ISN93 As MgCoordinateSystem = coordDic.GetCoordinateSystem("ISN93")
            Dim ISN1900 As MgCoordinateSystem = coordDic.GetCoordinateSystem("Reykjavik.IcelandGrid")

            Dim coordSysFactory As New MgCoordinateSystemFactory()

            Try
                Dim selOpts As New PromptSelectionOptions()
                Dim res As PromptSelectionResult

                selOpts.SingleOnly = True
                selOpts.MessageForAdding = "Select an entity"
                res = editor.GetSelection(selOpts)
                If (res.Status &amp;lt;&amp;gt; PromptStatus.OK) Then
                    Return
                End If

                Dim id As ObjectId = res.Value.GetObjectIds(0)

                Dim ent As Entity = trans.GetObject(id, OpenMode.ForWrite, False)
                Dim mat As Matrix3d = ent.Ecs

                Dim ISN93ToISN1900 As MgCoordinateSystemTransform = factory.GetTransform(ISN93, ISN1900)


                If TypeOf ent Is DBPoint Then
                    Dim opt As DBPoint = TryCast(ent, DBPoint)
                    Dim ISN93ToISN1900Coord As MgCoordinate = ISN93ToISN1900.Transform(opt.Position.X, opt.Position.Y, opt.Position.Z)

                    editor.WriteMessage(opt.Position.X &amp;amp; "   " &amp;amp; opt.Position.Y &amp;amp; "   " &amp;amp; opt.Position.Z)

                    Dim moveVec As New Vector3d(ISN93ToISN1900Coord.X - opt.Position.X, ISN93ToISN1900Coord.Y - opt.Position.Y, ISN93ToISN1900Coord.Z - opt.Position.Z)
                    Dim moveMat As Matrix3d = Matrix3d.Displacement(moveVec)
                    ent.TransformBy(ent.Ecs.PostMultiplyBy(moveMat))

                    trans.Commit()

                End If

            Catch ex As System.Exception
                trans.Abort()
                MsgBox(ex.Message)
            Finally
                trans.Dispose()
            End Try&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jan 2018 08:21:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7696352#M28050</guid>
      <dc:creator>Sgear</dc:creator>
      <dc:date>2018-01-17T08:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Transform object Between Coordinate System</title>
      <link>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7697450#M28051</link>
      <description>&lt;P&gt;Is your data 3D (is your Z not zero)? That's just a guess... my transformations all use Point2D.&amp;nbsp; What is the distance between the 2 points? I don't believe "UNITS" should be an issue -&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt;&amp;nbsp;might provide more info...&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 14:58:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7697450#M28051</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2018-01-17T14:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Transform object Between Coordinate System</title>
      <link>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7697597#M28052</link>
      <description>&lt;P&gt;The data is 2D,&amp;nbsp;&lt;SPAN&gt;Z&amp;nbsp;is zero&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;the distance between the 2 point 0.024&amp;nbsp;&amp;nbsp;not much but should not be&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;UNITS = Millimeters&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 15:31:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7697597#M28052</guid>
      <dc:creator>Sgear</dc:creator>
      <dc:date>2018-01-17T15:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Transform object Between Coordinate System</title>
      <link>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7697842#M28053</link>
      <description>&lt;P&gt;try creating a new DBPoint instead of "moving" - just to rule that part out of the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not good with vb syntax anymore.&lt;/P&gt;
&lt;P&gt;Dim ISN93ToISN1900Coord As MgCoordinate = ISN93ToISN1900.Transform(opt.Position.X, opt.Position.Y, opt.Position.Z)&lt;/P&gt;
&lt;P&gt;create a new point2d with ISN93ToISN1900Coord.X and ISN93ToISN1900Coord.Y.&lt;/P&gt;
&lt;P&gt;place a new DBPoint at the new point2d&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;edit&amp;gt; create a new Point3D with mgcoordinate.X, Y, Z.&lt;/P&gt;
&lt;P&gt;create a new DBPoint at new Point3D&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 16:39:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7697842#M28053</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2018-01-17T16:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transform object Between Coordinate System</title>
      <link>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7698320#M28054</link>
      <description>&lt;P&gt;I am not sure where the difference bwtween using AutoCAD Map built-in command/operation and using Platform API's calculation was from, in your case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just did a quick verification, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. I have a shape file created in projected coordinate system "NAD83.BC/Abers", in which a point's coordinate is X=1233743.880, Y=1196519.261.&lt;/P&gt;
&lt;P&gt;2 I want to convert this point into projected coordinate system "UTM83-10".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, here is what I did in different ways and the results are all the same, the converted UTM83-10 coordinate is X=545837.500, Y=6173925.001. (well, both of the coordinate systems have unit in "METER", thus the converted number may have tiny difference in the 5th, or 6th decimal, which is ignorable):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. I start a blank drawing, assign UTM83-10 coordinate system to the blank drawing. Then I use "MapImport" command to import the shape into the drawing. Then I checked the point's coordinate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. I start a blank drawing, assign it UTM83-10 coordinate system, drag the shape into the drawing, which is equivalent to use MaFDO connection to load FDO data into AutoCAD MAP. This also correctly convert the NAD83.BC/Abers coordinate into UTM83-10 coordinate, the same as 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. I wrote code to programmatically convert the coordinate with Platform API, just as you did (with actually moving the DBPoint). the result is the same. here is the code anyway:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;using System;
using Autodesk.AutoCAD.Geometry;
using OSGeo.MapGuide;

namespace MapPlatformCsTranform
{
    public class CoordConverter
    {
        public static void Convert(string fromCs, string toCs, Point2d fromPoint, out Point2d toPoint)
        {
            toPoint = Point2d.Origin;

            var factory = new MgCoordinateSystemFactory();
            var catalog = factory.GetCatalog();
            var coordDic = catalog.GetCoordinateSystemDictionary();

            MgCoordinateSystem  fromCoord = null;
            if (coordDic.Has(fromCs)) fromCoord = coordDic.GetCoordinateSystem(fromCs);
            if (fromCoord==null)
            {
                throw new InvalidOperationException(
                    $"Coordinate system {fromCs} is not available in AutoCAD Map.");
            }

            MgCoordinateSystem toCoord = null;
            if (coordDic.Has(toCs)) toCoord = coordDic.GetCoordinateSystem(toCs);
            if (toCoord == null)
            {
                throw new InvalidOperationException(
                    $"Coordinate system {toCs} is not available in AutoCAD Map.");
            }

            var coordTransform = factory.GetTransform(fromCoord, toCoord);
            var mgCoord = coordTransform.Transform(fromPoint.X, fromPoint.Y);

            toPoint = new Point2d(mgCoord.X, mgCoord.Y);
        }
    }
}&lt;/PRE&gt;
&lt;PRE&gt;using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.Geometry;
using CadApp = Autodesk.AutoCAD.ApplicationServices.Application;

[assembly: CommandClass(typeof(MapPlatformCsTranform.MyCommands))]

namespace MapPlatformCsTranform
{
    public class MyCommands 
    {
        [CommandMethod("CalcCoord")]
        public static void RunDocCommand()
        {
            var dwg = CadApp.DocumentManager.MdiActiveDocument;
            var ed = dwg.Editor;

            try
            {
                string sourceCs = "NAD83.BC/Abers";
                string destiCs = "UTM83-10";
                var sourcePoint = new Point2d(1233743.880, 1196519.261);
                CoordConvertion(sourceCs, destiCs, sourcePoint);

                sourceCs = "UTM83-10";
                destiCs = "NAD83.BC/Abers";
                sourcePoint = new Point2d(545837.50, 6173925.001);
                CoordConvertion(sourceCs, destiCs, sourcePoint);

            }
            catch (System.Exception ex)
            {
                ed.WriteMessage("\nError: {0}", ex.Message);
                ed.WriteMessage("\n*Cancel*");
            }
            finally
            {
                Autodesk.AutoCAD.Internal.Utils.PostCommandPrompt();
            }
        }

        private static void CoordConvertion(string sourceCs, string destiCs, Point2d sourcePoint)
        {
            CoordConverter.Convert(sourceCs, destiCs, sourcePoint, out Point2d destiPoint);

            var msg = $"Output point: x={destiPoint.X}, y={destiPoint.Y}";
            CadApp.ShowAlertDialog(msg);
        }
    }
}&lt;/PRE&gt;
&lt;P&gt;I did not try drawing set/attaching&amp;nbsp;approach, but expect the result would be the same. So, whether you use AutoCAD built-in approaches, as I suggested in previous reply, or use AutoCAD platform API to calculate the coordinate, the result should be the same with&amp;nbsp;negligible difference (because the numbers are float point numbers).&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 18:32:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7698320#M28054</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2018-01-17T18:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Transform object Between Coordinate System</title>
      <link>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7698907#M28055</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you convert&amp;nbsp;out to VB.NET&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;CoordConverter.Convert(sourceCs, destiCs, sourcePoint, out Point2d destiPoint);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 22:04:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/transform-object-between-coordinate-system/m-p/7698907#M28055</guid>
      <dc:creator>Sgear</dc:creator>
      <dc:date>2018-01-17T22:04:02Z</dc:date>
    </item>
  </channel>
</rss>

