<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/vb-net-setxdata-variant-datatypes/m-p/356259#M71568</link>
    <description>The preceding was an unpaid commercial advertisement and does not&lt;BR /&gt;
necessarily reflect the views of this group or it's owners. We now return&lt;BR /&gt;
you to our regularly scheduled broadcast.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
There are 10 kinds of people:&lt;BR /&gt;
Those who understand binary and those who don't&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
http://vbxtender.sourceforge.net</description>
    <pubDate>Mon, 19 Aug 2002 06:33:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-08-19T06:33:18Z</dc:date>
    <item>
      <title>VB.NET SetXData (Variant datatypes)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vb-net-setxdata-variant-datatypes/m-p/356255#M71564</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
In using Vb.Net I'm looking to set X Data in VB.net but when I pass the data to AutoCAD I get an error telling me I have an invalid data type.  I understand that AutoCAD does not yet support .Net, but is there anyway to code this so I can send my data in AutoCAD since it seems to be looking for a variant data type??&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I also know there is the same issue with selection set filter types and values since they are variant data types as well.&lt;BR /&gt;
If there are any solutions no matter how messy I would love to have one for a moderate sized project I'm in the middle of, I really don't want to port it into VB6.&lt;BR /&gt;
&lt;BR /&gt;
-Thanks&lt;BR /&gt;
Bob</description>
      <pubDate>Fri, 16 Aug 2002 13:34:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vb-net-setxdata-variant-datatypes/m-p/356255#M71564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-16T13:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: VB.NET SetXData (Variant datatypes)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vb-net-setxdata-variant-datatypes/m-p/356256#M71565</link>
      <description>The trick with passing DXF codes is to use an array of type short and an&lt;BR /&gt;
array of type object. A VB Integer maps to .NET's System.Int16 (Short). The&lt;BR /&gt;
AutoCAD wrapper assembly will take care of mapping your .NET objects to VB&lt;BR /&gt;
Variants.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
There are 10 kinds of people:&lt;BR /&gt;
Those who understand binary and those who don't&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
http://vbxtender.sourceforge.net</description>
      <pubDate>Fri, 16 Aug 2002 13:40:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vb-net-setxdata-variant-datatypes/m-p/356256#M71565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-16T13:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: VB.NET SetXData (Variant datatypes)</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vb-net-setxdata-variant-datatypes/m-p/356257#M71566</link>
      <description>"Triston" &lt;BOB-DORRIS&gt; wrote in message&lt;BR /&gt;
news:f10461f.-1@WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi,&lt;BR /&gt;
&amp;gt; In using Vb.Net I'm looking to set X Data in VB.net but when I pass the&lt;BR /&gt;
data to AutoCAD I get an error telling me I have an invalid data type. I&lt;BR /&gt;
understand that AutoCAD does not yet support .Net, but is there anyway to&lt;BR /&gt;
code this so I can send my data in AutoCAD since it seems to be looking for&lt;BR /&gt;
a variant data type??&lt;BR /&gt;
&lt;BR /&gt;
In VB.NET, the 'Integer' type is 32 bits.&lt;BR /&gt;
&lt;BR /&gt;
In earlier versions of VB, an Integer was 16 bits,&lt;BR /&gt;
so in VB.NET, anywhere that you used 'Array of Integer'&lt;BR /&gt;
in VB6, you need to use an array of short, or Int16&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I also know there is the same issue with selection set filter types and&lt;BR /&gt;
values since they are variant data types as well.&lt;BR /&gt;
&amp;gt; If there are any solutions no matter how messy I would love to have one&lt;BR /&gt;
for a moderate sized project I'm in the middle of, I really don't want to&lt;BR /&gt;
port it into VB6.&lt;BR /&gt;
&lt;BR /&gt;
While this isn't going to help you with your current&lt;BR /&gt;
needs, work is already underway here on a native CLR/.NET&lt;BR /&gt;
version of the ObjectARX API, that completely eliminates&lt;BR /&gt;
the need to use ActiveX. After looking at the internals of&lt;BR /&gt;
the RCW COM wrappers generated by TLBIMP, it became clear&lt;BR /&gt;
to me that ActiveX is simply not the way to go. The main&lt;BR /&gt;
reason is because the RCW unconditionally sinks all events&lt;BR /&gt;
exposed by the ActiveX server. So, for example, anytime you&lt;BR /&gt;
have a variable typed as AcadDocumentClass, the wrapper is&lt;BR /&gt;
handling *all* AcadDocumentEvents. While it only fires those&lt;BR /&gt;
that you've subscribed to, it is still handling all of the&lt;BR /&gt;
events fired by AcadDocument, including the three high-&lt;BR /&gt;
frequency ones (ObjectAdded/Modified/Erased).&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately, that's a major problem for any interprocess&lt;BR /&gt;
use of .NET.&lt;/BOB-DORRIS&gt;</description>
      <pubDate>Fri, 16 Aug 2002 14:05:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vb-net-setxdata-variant-datatypes/m-p/356257#M71566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-16T14:05:38Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vb-net-setxdata-variant-datatypes/m-p/356258#M71567</link>
      <description>Frank,&lt;BR /&gt;
&lt;BR /&gt;
Woo Hoo!  Thanks I will give it a try.  I thought I was going to have to convert my whole project back to VB 6.&lt;BR /&gt;
&lt;BR /&gt;
Been trying to research that one for a while now!&lt;BR /&gt;
&lt;BR /&gt;
-Triston</description>
      <pubDate>Mon, 19 Aug 2002 04:51:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vb-net-setxdata-variant-datatypes/m-p/356258#M71567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-19T04:51:54Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vb-net-setxdata-variant-datatypes/m-p/356259#M71568</link>
      <description>The preceding was an unpaid commercial advertisement and does not&lt;BR /&gt;
necessarily reflect the views of this group or it's owners. We now return&lt;BR /&gt;
you to our regularly scheduled broadcast.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
There are 10 kinds of people:&lt;BR /&gt;
Those who understand binary and those who don't&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
http://vbxtender.sourceforge.net</description>
      <pubDate>Mon, 19 Aug 2002 06:33:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vb-net-setxdata-variant-datatypes/m-p/356259#M71568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-19T06:33:18Z</dc:date>
    </item>
  </channel>
</rss>

