<?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: Can't use function GetBoundingBox from C# application in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/can-t-use-function-getboundingbox-from-c-application/m-p/3553376#M67334</link>
    <description>&lt;P&gt;Can you share a copy of part of code because am unable to find data in the link. Am also using the same concept of GetBoundingBox to Get the location of Texts.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jul 2012 10:24:36 GMT</pubDate>
    <dc:creator>amitnkukanur</dc:creator>
    <dc:date>2012-07-26T10:24:36Z</dc:date>
    <item>
      <title>Can't use function GetBoundingBox from C# application</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-use-function-getboundingbox-from-c-application/m-p/2624329#M67331</link>
      <description>Hi.&lt;BR /&gt;
I work with Autocad  from C# application using late binding.&lt;BR /&gt;
After inserting block, i want to get its bounds.&lt;BR /&gt;
&lt;BR /&gt;
double[] aMinPoint = new double[3], aMaxPoint = new double[3];&lt;BR /&gt;
Params = new object[] { aMinPoint, aMaxPoint };&lt;BR /&gt;
oBlock.GetType().InvokeMember("GetBoundingBox", BindingFlags.InvokeMethod, null, oBlock, Params);&lt;BR /&gt;
&lt;BR /&gt;
But after execution this code aMaxPoint and aMinPoint had their default values - 0.&lt;BR /&gt;
&lt;BR /&gt;
What do I do wrong?&lt;BR /&gt;
&lt;BR /&gt;
By the way the same task in VB.NET (with built-in late binding) solves good.&lt;BR /&gt;
&lt;BR /&gt;
Dim aMinPoint() As Double&lt;BR /&gt;
Dim aMaxPoint() As Double&lt;BR /&gt;
&lt;BR /&gt;
oBlock.GetBoundingBox(aMinPoint, aMaxPoint)&lt;BR /&gt;
&lt;BR /&gt;
Thanks for help.</description>
      <pubDate>Fri, 29 Jan 2010 14:22:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-use-function-getboundingbox-from-c-application/m-p/2624329#M67331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-29T14:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use function GetBoundingBox from C# application</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-use-function-getboundingbox-from-c-application/m-p/2624330#M67332</link>
      <description>See the sample code here:&lt;BR /&gt;
&lt;BR /&gt;
     http://www.caddzone.com/LateBoundComSample.cs&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;NAMELESSDN&gt; wrote in message news:6326932@discussion.autodesk.com...&lt;BR /&gt;
Hi.&lt;BR /&gt;
I work with Autocad  from C# application using late binding.&lt;BR /&gt;
After inserting block, i want to get its bounds.&lt;BR /&gt;
&lt;BR /&gt;
double[] aMinPoint = new double[3], aMaxPoint = new double[3];&lt;BR /&gt;
Params = new object[] { aMinPoint, aMaxPoint };&lt;BR /&gt;
oBlock.GetType().InvokeMember("GetBoundingBox", BindingFlags.InvokeMethod, null, &lt;BR /&gt;
oBlock, Params);&lt;BR /&gt;
&lt;BR /&gt;
But after execution this code aMaxPoint and aMinPoint had their default values - &lt;BR /&gt;
0.&lt;BR /&gt;
&lt;BR /&gt;
What do I do wrong?&lt;BR /&gt;
&lt;BR /&gt;
By the way the same task in VB.NET (with built-in late binding) solves good.&lt;BR /&gt;
&lt;BR /&gt;
Dim aMinPoint() As Double&lt;BR /&gt;
Dim aMaxPoint() As Double&lt;BR /&gt;
&lt;BR /&gt;
oBlock.GetBoundingBox(aMinPoint, aMaxPoint)&lt;BR /&gt;
&lt;BR /&gt;
Thanks for help.&lt;/NAMELESSDN&gt;</description>
      <pubDate>Sat, 30 Jan 2010 06:51:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-use-function-getboundingbox-from-c-application/m-p/2624330#M67332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-30T06:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use function GetBoundingBox from C# application</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-use-function-getboundingbox-from-c-application/m-p/2624331#M67333</link>
      <description>Perfect sample, thanks.</description>
      <pubDate>Sat, 30 Jan 2010 07:34:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-use-function-getboundingbox-from-c-application/m-p/2624331#M67333</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-30T07:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use function GetBoundingBox from C# application</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-use-function-getboundingbox-from-c-application/m-p/3553376#M67334</link>
      <description>&lt;P&gt;Can you share a copy of part of code because am unable to find data in the link. Am also using the same concept of GetBoundingBox to Get the location of Texts.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 10:24:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-use-function-getboundingbox-from-c-application/m-p/3553376#M67334</guid>
      <dc:creator>amitnkukanur</dc:creator>
      <dc:date>2012-07-26T10:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use function GetBoundingBox from C# application</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-use-function-getboundingbox-from-c-application/m-p/3559042#M67335</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer blog post &lt;A href="http://adndevblog.typepad.com/autocad/2012/07/using-activex-api-getboundingbox-in-net.html" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2012/07/using-activex-api-getboundingbox-in-net.html&lt;/A&gt;. The post shows the use of GetBoundingBox in c#&amp;nbsp; application&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2012 09:16:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-use-function-getboundingbox-from-c-application/m-p/3559042#M67335</guid>
      <dc:creator>Virupaksha_aithal</dc:creator>
      <dc:date>2012-07-31T09:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't use function GetBoundingBox from C# application</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-use-function-getboundingbox-from-c-application/m-p/3559090#M67336</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/826400" target="_self"&gt;Virupaksha.aithal&lt;/A&gt;, i resolved this issue quite some time ago, but stuck up in a new location. Call rejected by callee.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have already posted a issue in the forum and side by side i am also trying to execute this, but my code gets stuck at&amp;nbsp;&lt;SPAN&gt;Call rejected by callee.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Then if i press F5 it works as expected&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/NET/Call-Rejected-by-Callee/td-p/3558826" target="_blank"&gt;http://forums.autodesk.com/t5/NET/Call-Rejected-by-Callee/td-p/3558826&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;This is the link for it&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;With Warm Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Amit&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2012 10:06:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-use-function-getboundingbox-from-c-application/m-p/3559090#M67336</guid>
      <dc:creator>amitnkukanur</dc:creator>
      <dc:date>2012-07-31T10:06:49Z</dc:date>
    </item>
  </channel>
</rss>

