<?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: Problem using acedTrans for UCS to DCS  in AutoCAD 2013 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/problem-using-acedtrans-for-ucs-to-dcs-in-autocad-2013/m-p/5086540#M56296</link>
    <description>&lt;P&gt;Misprint for acedTrans_x64. This is right:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[DllImport(acedTransOwner, CallingConvention = CallingConvention.Cdecl,
            EntryPoint = acedTransName)]
    static extern Int32 acedTrans_x64(Double[] point, IntPtr fromRb, 
      IntPtr toRb, Int32 disp, Double[] result);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jun 2014 20:34:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-10T20:34:23Z</dc:date>
    <item>
      <title>Problem using acedTrans for UCS to DCS  in AutoCAD 2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-using-acedtrans-for-ucs-to-dcs-in-autocad-2013/m-p/3409955#M56291</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We using acedTrans function in AutoCAD 2012 and previous version, and it worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[DllImport("acad.exe", CallingConvention=CallingConvention.Cdecl, EntryPoint="acedTrans")] static extern int acedTrans(double[] point, IntPtr fromRb, IntPtr toRb, int disp, double[] result);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kean had a post introduct this code: &lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/2007/10/plotting-a-wind.html"&gt;http://through-the-interface.typepad.com/through_the_interface/2007/10/plotting-a-wind.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but after we migrate it to AutoCAD 2013, there is a error message:&amp;nbsp; Unable to find an entity point named 'acedTrans' in dll 'acad.exe'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can't find the reference sample from the objectARX for 2013 version,&amp;nbsp;it's any change for 2013?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 06:10:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-using-acedtrans-for-ucs-to-dcs-in-autocad-2013/m-p/3409955#M56291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-12T06:10:44Z</dc:date>
    </item>
    <item>
      <title>Re : Problem using acedTrans for UCS to DCS  in AutoCAD 2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-using-acedtrans-for-ucs-to-dcs-in-autocad-2013/m-p/3409977#M56292</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try replacing&amp;nbsp;&lt;SPAN&gt;"acad.exe" with "accore.dll".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 06:25:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-using-acedtrans-for-ucs-to-dcs-in-autocad-2013/m-p/3409977#M56292</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2012-04-12T06:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using acedTrans for UCS to DCS  in AutoCAD 2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-using-acedtrans-for-ucs-to-dcs-in-autocad-2013/m-p/3654820#M56294</link>
      <description>thank very much!its exactly what l want!</description>
      <pubDate>Thu, 11 Oct 2012 02:44:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-using-acedtrans-for-ucs-to-dcs-in-autocad-2013/m-p/3654820#M56294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-11T02:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using acedTrans for UCS to DCS  in AutoCAD 2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-using-acedtrans-for-ucs-to-dcs-in-autocad-2013/m-p/5086354#M56295</link>
      <description>&lt;P&gt;Additional info for AutoCAD 2015.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its name is &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;_&lt;/FONT&gt;acedTrans&lt;/STRONG&gt; in AutoCAD 2015 &lt;FONT color="#ff0000"&gt;x86&lt;/FONT&gt;, and &lt;STRONG&gt;acedTrans&lt;/STRONG&gt; in AutoCAD 2015 &lt;FONT color="#ff0000"&gt;x64&lt;/FONT&gt;. So, as a variant:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#if AUTOCAD_NEWER_THAN_2012
    const String acedTransOwner = "accore.dll";
#else
    const String acedTransOwner = "acad.exe";    
#endif
 
#if AUTOCAD_NEWER_THAN_2014
    const String acedTrans_x86_Prefix = "_";
#else
    const String acedTrans_x86_Prefix = "";
#endif
 
    const String acedTransName = "acedTrans";
 
    [DllImport(acedTransOwner, CallingConvention = CallingConvention.Cdecl,
            EntryPoint = acedTrans_x86_Prefix + acedTransName)]
    static extern Int32 acedTrans_x86(Double[] point, IntPtr fromRb, 
      IntPtr toRb, Int32 disp, Double[] result);
 
    [DllImport(acedTransOwner, CallingConvention = CallingConvention.Cdecl,
            EntryPoint = acedTrans_x86_Prefix + acedTransName)]
    static extern Int32 acedTrans_x64(Double[] point, IntPtr fromRb, 
      IntPtr toRb, Int32 disp, Double[] result);
 
    public static Int32 acedTrans(Double[] point, IntPtr fromRb, IntPtr toRb,
      Int32 disp, Double[] result) {
        if(IntPtr.Size == 4)
          return acedTrans_x86(point, fromRb, toRb, disp, result);
        else
          return acedTrans_x64(point, fromRb, toRb, disp, result);
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2014 19:20:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-using-acedtrans-for-ucs-to-dcs-in-autocad-2013/m-p/5086354#M56295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-10T19:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using acedTrans for UCS to DCS  in AutoCAD 2013</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-using-acedtrans-for-ucs-to-dcs-in-autocad-2013/m-p/5086540#M56296</link>
      <description>&lt;P&gt;Misprint for acedTrans_x64. This is right:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[DllImport(acedTransOwner, CallingConvention = CallingConvention.Cdecl,
            EntryPoint = acedTransName)]
    static extern Int32 acedTrans_x64(Double[] point, IntPtr fromRb, 
      IntPtr toRb, Int32 disp, Double[] result);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2014 20:34:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-using-acedtrans-for-ucs-to-dcs-in-autocad-2013/m-p/5086540#M56296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-10T20:34:23Z</dc:date>
    </item>
  </channel>
</rss>

