<?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: Unable to set coordinate system with RealDWG 2023. in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11728153#M1954</link>
    <description>&lt;P&gt;So you are still stuck. Unfortunately I don't have RealDWG 2023 and so I don't know how to investigate further.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you should ask for support directly at &lt;A href="https://www.techsoft3d.com/" target="_blank" rel="noopener"&gt;TechSoft3D&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2023 17:58:26 GMT</pubDate>
    <dc:creator>tbrammer</dc:creator>
    <dc:date>2023-02-03T17:58:26Z</dc:date>
    <item>
      <title>Unable to set coordinate system with RealDWG 2023.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11710761#M1950</link>
      <description>&lt;P&gt;Hi, I'm working on upgrading our RealDWG library from r2022 to r2023.&amp;nbsp; However, we ran into a regression with setting the coordinate system using the &lt;STRONG&gt;AcDbGeoData setCoordinateSystem()&lt;/STRONG&gt; method when writing a DWG file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to reproduce this in the &lt;STRONG&gt;CreateNT&lt;/STRONG&gt; sample as well.&amp;nbsp; Using r2022, it would work without issues.&amp;nbsp; But running the same code in r2023, the method returns &lt;STRONG&gt;eNotApplicable&lt;/STRONG&gt; instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something that needs to be done differently in r2023?&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;AcDbGeoData* pGeoData = new AcDbGeoData;
pGeoData-&amp;gt;setBlockTableRecordId(modelSpaceId);
pGeoData-&amp;gt;postToDb(geoDataObjId);

// returns eOk in 2022, but eNotApplicable in 2023
pGeoData-&amp;gt;setCoordinateSystem(AcString(L"UTM83-10"));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 16:46:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11710761#M1950</guid>
      <dc:creator>kevin_dangBW7DG</dc:creator>
      <dc:date>2023-01-27T16:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set coordinate system with RealDWG 2023.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11724322#M1952</link>
      <description>&lt;P&gt;I have to admit that I'm not familiar with &lt;FONT face="courier new,courier"&gt;class&amp;nbsp;AcDbGeoData&lt;/FONT&gt;. Anyway I try to help based on my experience with RealDWG 2022 and ObjectARX in general.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe RealDWG 2023 must load some .DBX/.ARX/.DLL modules before you can call &lt;FONT face="courier new,courier"&gt;setCoordinateSystem()&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;I checked with &lt;A href="https://learn.microsoft.com/en-us/sysinternals/downloads/procmon" target="_blank" rel="noopener"&gt;ProcessMonitor&lt;/A&gt; which modules are loaded when&amp;nbsp; I execute&amp;nbsp;&lt;FONT face="courier new,courier"&gt;setCoordinateSystem()&lt;/FONT&gt; in AutoCAD 2022:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;AcAuthEnviron.crx&lt;BR /&gt;AcGeoLocationObj.dbx&lt;BR /&gt;AcParameter.crx&lt;BR /&gt;AcGeoLocationOE.crx&lt;BR /&gt;AcTcUi.dll, AcTc.dll&lt;BR /&gt;AcAuthEnviron.arx&lt;BR /&gt;AcGeoLocationUI.arx&lt;/P&gt;
&lt;P&gt;Make sure that the .dbx and .crx modules are loaded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The docs for&amp;nbsp;&lt;FONT face="courier new,courier"&gt;AcDbGeoData::setCoordinateSystem(coords)&lt;/FONT&gt; say about the parameter &lt;FONT face="courier new,courier"&gt;coords&lt;/FONT&gt;:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;The spatial coordinate system string. It can be the ID of the coordinate system or the XML/WKT representation. You must always use a coordinate system provided by AutoCAD since AutoCAD does not accept custom coordinate systems in your XML.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;"UTM83-10" doesn't look like an XML string. So I suppose it is an ID. Where does AutoCAD search for this ID? Could it be that RealDWG can't find it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 13:59:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11724322#M1952</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2023-02-02T13:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set coordinate system with RealDWG 2023.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11728128#M1953</link>
      <description>&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt; I checked with&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/sysinternals/downloads/procmon" target="_blank" rel="noopener nofollow noreferrer"&gt;ProcessMonitor&lt;/A&gt;&amp;nbsp;which modules are loaded when&amp;nbsp; I execute&amp;nbsp;&lt;FONT face="courier new,courier"&gt;setCoordinateSystem()&lt;/FONT&gt;&amp;nbsp;in AutoCAD 2022...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I tried running my repro using the CreateNT sample, the only DLL I saw get loaded when calling &lt;STRONG&gt;setCoordinateSystem()&lt;/STRONG&gt; was &lt;STRONG&gt;AdSpatialReference.dll&lt;/STRONG&gt;.&amp;nbsp; I did try loading the modules you listed, however, the only one I could load was &lt;STRONG&gt;AcGeoLocationObj.dbx&lt;/STRONG&gt;.&amp;nbsp; The others don't seem to be available in the RealDWG SDK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt; "UTM83-10" doesn't look like an XML string. So I suppose it is an ID. Where does AutoCAD search for this ID? Could it be that RealDWG can't find it?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes, &lt;STRONG&gt;UTM83-10&lt;/STRONG&gt; should be an ID in this context.&amp;nbsp; I was able to read from a file that had this coordinate system using &lt;STRONG&gt;AcDbGeoData-&amp;gt;coordinateSystem()&lt;/STRONG&gt;, which returned as an XML.&amp;nbsp; This XML showed &lt;STRONG&gt;UTM83-10&lt;/STRONG&gt; as an ID in one of the nodes.&amp;nbsp; I had also tried copying the XML and passing that in as well, but it still just returns &lt;STRONG&gt;eNotApplicable&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't think the problem is in RealDWG not being able to find it since it is able to return the XML.&amp;nbsp; Also, it works fine in the RealDWG 2022 context, just not in 2023.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 17:49:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11728128#M1953</guid>
      <dc:creator>kevin_dangBW7DG</dc:creator>
      <dc:date>2023-02-03T17:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set coordinate system with RealDWG 2023.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11728153#M1954</link>
      <description>&lt;P&gt;So you are still stuck. Unfortunately I don't have RealDWG 2023 and so I don't know how to investigate further.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you should ask for support directly at &lt;A href="https://www.techsoft3d.com/" target="_blank" rel="noopener"&gt;TechSoft3D&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 17:58:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11728153#M1954</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2023-02-03T17:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set coordinate system with RealDWG 2023.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11731821#M1955</link>
      <description>&lt;P&gt;Hi Kevin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please check if AdSpatialReference is installed correctly? For R2023, the location is &amp;lt;ProgramData&amp;gt;\Autodesk\Geospatial Coordinate Systems 14.09.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 02:14:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11731821#M1955</guid>
      <dc:creator>andy.zhang1</dc:creator>
      <dc:date>2023-02-06T02:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set coordinate system with RealDWG 2023.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11733681#M1956</link>
      <description>&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just checked the location you mentioned, and it looks like I don't have the 14.09 directory.&amp;nbsp; I only have Geospatial Coordinate Systems 14.04 to 14.08 apparently.&amp;nbsp; How would I get 14.09 installed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 17:14:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11733681#M1956</guid>
      <dc:creator>kevin_dangBW7DG</dc:creator>
      <dc:date>2023-02-06T17:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set coordinate system with RealDWG 2023.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11734842#M1957</link>
      <description>&lt;P&gt;Hi Kevin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AdSpatialReference 14.09 is included in RealDWG 2023. You can try to re-install RealDWG 2023.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 01:33:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11734842#M1957</guid>
      <dc:creator>andy.zhang1</dc:creator>
      <dc:date>2023-02-07T01:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set coordinate system with RealDWG 2023.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11738098#M1958</link>
      <description>&lt;P&gt;Thanks Andy, looks like the problem really was due to the missing directory.&amp;nbsp; It works fine now after a proper install.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 01:08:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/unable-to-set-coordinate-system-with-realdwg-2023/m-p/11738098#M1958</guid>
      <dc:creator>kevin_dangBW7DG</dc:creator>
      <dc:date>2023-02-08T01:08:35Z</dc:date>
    </item>
  </channel>
</rss>

