<?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: SummaryInfo bug? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782287#M80224</link>
    <description>Hi, Perry!&lt;BR /&gt;
&lt;BR /&gt;
p&amp;gt; I did understand your first post (my reply was not so good though), I&lt;BR /&gt;
p&amp;gt; knew this was possible with ARX but not so with .Net. I just am not&lt;BR /&gt;
p&amp;gt; knowledgeable in accessing ARX within .Net.&lt;BR /&gt;
&lt;BR /&gt;
I try to do that with help of P/Invoke of ObjectARX function but without&lt;BR /&gt;
success (this function is virtual and not exported from acad.exe of acdb17.dll). &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
That is why I've found another  solution - using ActiveX-model of AutoCAD.&lt;BR /&gt;
&lt;BR /&gt;
p&amp;gt; Do you know where I can go to learn more about the acad interop&lt;BR /&gt;
p&amp;gt; services? Or do I just have to look at the object browser and hack.&lt;BR /&gt;
p&amp;gt; Learn by trial and error?&lt;BR /&gt;
&lt;BR /&gt;
There are two way that I know:&lt;BR /&gt;
1) Read AutoCAD 200X Help-&amp;gt;ActiveX Automation and VBA-&amp;gt;ActiveX and VBA Reference&lt;BR /&gt;
and translate VBA code to C#.&lt;BR /&gt;
2) Look at the Object Browser.&lt;BR /&gt;
Or combine both way - in will be better solution.&lt;BR /&gt;
&lt;BR /&gt;
p&amp;gt; Thank you again for your help !&lt;BR /&gt;
&lt;BR /&gt;
:)&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Alexander Rivilis.</description>
    <pubDate>Thu, 05 Oct 2006 17:15:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-10-05T17:15:15Z</dc:date>
    <item>
      <title>SummaryInfo bug?</title>
      <link>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782280#M80217</link>
      <description>There seems to be a bug in the .Net implementation of the SummaryInfo &lt;BR /&gt;
construct. I have a few drawings where some custom info was accidently&lt;BR /&gt;
entered twice into drawing properties. Autocad itself does'nt seem to &lt;BR /&gt;
mind this. Attempting to access drawing properties via .Net however &lt;BR /&gt;
Minds it alot. Net just immediately throws an exception as soon as you &lt;BR /&gt;
try to create a summaryinfo object so you cant even "correct" the problem.&lt;BR /&gt;
Heres the first line of the exception:&lt;BR /&gt;
"Item has already been added. Key in dictionary: 'job no.' Key being &lt;BR /&gt;
added: 'job no.'&lt;BR /&gt;
So how am I supposed to work around this? If I get an exception just&lt;BR /&gt;
replace summaryinfo with a new empty one and rebuilt it? With that &lt;BR /&gt;
approach you can't even extract the "good" values from the original.&lt;BR /&gt;
&lt;BR /&gt;
Perry</description>
      <pubDate>Wed, 04 Oct 2006 16:31:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782280#M80217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-04T16:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: SummaryInfo bug?</title>
      <link>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782281#M80218</link>
      <description>Imho without help of ObjectARX you can not get/put SummaryInfo with duplicate keys in custom info. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Wed, 04 Oct 2006 17:20:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782281#M80218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-04T17:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: SummaryInfo bug?</title>
      <link>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782282#M80219</link>
      <description>Alexander Rivilis wrote:&lt;BR /&gt;
&amp;gt; Imho without help of ObjectARX you can not get/put SummaryInfo with duplicate keys in custom info. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
I'm not trying to create duplicate keys, I'm trying to remove &lt;BR /&gt;
accidentally created duplicates.</description>
      <pubDate>Wed, 04 Oct 2006 17:51:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782282#M80219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-04T17:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: SummaryInfo bug?</title>
      <link>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782283#M80220</link>
      <description>Try reading Alex's reply again.&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 2004/2005/2006/2007&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"perry" &lt;PERRY_LEETS&gt; wrote in message news:5350536@discussion.autodesk.com...&lt;BR /&gt;
Alexander Rivilis wrote:&lt;BR /&gt;
&amp;gt; Imho without help of ObjectARX you can not get/put SummaryInfo with duplicate keys in custom info. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
I'm not trying to create duplicate keys, I'm trying to remove &lt;BR /&gt;
accidentally created duplicates.&lt;/PERRY_LEETS&gt;</description>
      <pubDate>Wed, 04 Oct 2006 18:30:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782283#M80220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-04T18:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: SummaryInfo bug?</title>
      <link>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782284#M80221</link>
      <description>Tony Tanzillo wrote:&lt;BR /&gt;
&amp;gt; Try reading Alex's reply again.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
Yes Tony, I understand that Alex is saying&lt;BR /&gt;
I could access that object via Arx even if&lt;BR /&gt;
it contains dupes.</description>
      <pubDate>Wed, 04 Oct 2006 19:08:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782284#M80221</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-04T19:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: SummaryInfo bug?</title>
      <link>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782285#M80222</link>
      <description>Maybe attached code  partly help you? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; You can use this function if you get exception with ordinary .NET method Database.SummaryInfo&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Alexander Rivilis.</description>
      <pubDate>Wed, 04 Oct 2006 20:35:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782285#M80222</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-04T20:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: SummaryInfo bug?</title>
      <link>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782286#M80223</link>
      <description>Alexander Rivilis wrote:&lt;BR /&gt;
&amp;gt; Maybe attached code  partly help you? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; You can use this function if you get exception with ordinary .NET method Database.SummaryInfo&lt;BR /&gt;
&amp;gt; Best Regards,&lt;BR /&gt;
&amp;gt; Alexander Rivilis.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ------------------------------------------------------------------------&lt;BR /&gt;
Thank you Alexander, that was very helpful indeed. I just slightly &lt;BR /&gt;
tweaked your code so that it did not add back the arrays of keys/values.&lt;BR /&gt;
It just deletes them. So in my application, if creating a summary info &lt;BR /&gt;
object throws an exception I know there is "bad" stuff in the custom &lt;BR /&gt;
info and I call your routine to delete it, then I rebuild it with my own &lt;BR /&gt;
data. It works very well now.&lt;BR /&gt;
I did understand your first post (my reply was not so good though), I &lt;BR /&gt;
knew this was possible with ARX but not so with .Net. I just am not &lt;BR /&gt;
knowledgeable in accessing ARX within .Net.&lt;BR /&gt;
Do you know where I can go to learn more about the acad interop &lt;BR /&gt;
services? Or do I just have to look at the object browser and hack. &lt;BR /&gt;
Learn by trial and error?&lt;BR /&gt;
&lt;BR /&gt;
Thank you again for your help !&lt;BR /&gt;
Perry</description>
      <pubDate>Thu, 05 Oct 2006 15:25:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782286#M80223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-05T15:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: SummaryInfo bug?</title>
      <link>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782287#M80224</link>
      <description>Hi, Perry!&lt;BR /&gt;
&lt;BR /&gt;
p&amp;gt; I did understand your first post (my reply was not so good though), I&lt;BR /&gt;
p&amp;gt; knew this was possible with ARX but not so with .Net. I just am not&lt;BR /&gt;
p&amp;gt; knowledgeable in accessing ARX within .Net.&lt;BR /&gt;
&lt;BR /&gt;
I try to do that with help of P/Invoke of ObjectARX function but without&lt;BR /&gt;
success (this function is virtual and not exported from acad.exe of acdb17.dll). &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
That is why I've found another  solution - using ActiveX-model of AutoCAD.&lt;BR /&gt;
&lt;BR /&gt;
p&amp;gt; Do you know where I can go to learn more about the acad interop&lt;BR /&gt;
p&amp;gt; services? Or do I just have to look at the object browser and hack.&lt;BR /&gt;
p&amp;gt; Learn by trial and error?&lt;BR /&gt;
&lt;BR /&gt;
There are two way that I know:&lt;BR /&gt;
1) Read AutoCAD 200X Help-&amp;gt;ActiveX Automation and VBA-&amp;gt;ActiveX and VBA Reference&lt;BR /&gt;
and translate VBA code to C#.&lt;BR /&gt;
2) Look at the Object Browser.&lt;BR /&gt;
Or combine both way - in will be better solution.&lt;BR /&gt;
&lt;BR /&gt;
p&amp;gt; Thank you again for your help !&lt;BR /&gt;
&lt;BR /&gt;
:)&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Alexander Rivilis.</description>
      <pubDate>Thu, 05 Oct 2006 17:15:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782287#M80224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-05T17:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: SummaryInfo bug?</title>
      <link>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782288#M80225</link>
      <description>Try the VBA/ActiveX programmer's reference.&lt;BR /&gt;
&lt;BR /&gt;
The code Alex posted uses the AutoCAD ActiveX/COM&lt;BR /&gt;
interface used by VBA.&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 2004/2005/2006/2007&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"perry" &lt;PERRY_LEETS&gt; wrote in message news:5351835@discussion.autodesk.com...&lt;BR /&gt;
Alexander Rivilis wrote:&lt;BR /&gt;
&amp;gt; Maybe attached code  partly help you? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; You can use this function if you get exception with ordinary .NET method Database.SummaryInfo&lt;BR /&gt;
&amp;gt; Best Regards,&lt;BR /&gt;
&amp;gt; Alexander Rivilis.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; ------------------------------------------------------------------------&lt;BR /&gt;
Thank you Alexander, that was very helpful indeed. I just slightly &lt;BR /&gt;
tweaked your code so that it did not add back the arrays of keys/values.&lt;BR /&gt;
It just deletes them. So in my application, if creating a summary info &lt;BR /&gt;
object throws an exception I know there is "bad" stuff in the custom &lt;BR /&gt;
info and I call your routine to delete it, then I rebuild it with my own &lt;BR /&gt;
data. It works very well now.&lt;BR /&gt;
I did understand your first post (my reply was not so good though), I &lt;BR /&gt;
knew this was possible with ARX but not so with .Net. I just am not &lt;BR /&gt;
knowledgeable in accessing ARX within .Net.&lt;BR /&gt;
Do you know where I can go to learn more about the acad interop &lt;BR /&gt;
services? Or do I just have to look at the object browser and hack. &lt;BR /&gt;
Learn by trial and error?&lt;BR /&gt;
&lt;BR /&gt;
Thank you again for your help !&lt;BR /&gt;
Perry&lt;/PERRY_LEETS&gt;</description>
      <pubDate>Thu, 05 Oct 2006 17:49:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/summaryinfo-bug/m-p/1782288#M80225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-10-05T17:49:15Z</dc:date>
    </item>
  </channel>
</rss>

