<?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: Call C++ ObjectArx from .NET arx to overcome the .NET arx limitation. in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281529#M26980</link>
    <description>As I said, you can use the ObjectARX wizard to create an ARX using Managed
C++.  Create a managed class, and in that class, declare a static function
that implements the C++ sample code that you found.

Then, in your C# project, reference the ARX module and call the static
function that you declared in your managed class.  There are other ways to
do this &amp;amp; you can get more complicated and elegant than this, but that's the
basic idea.



"Zhongwei Xia" &lt;ZXIA&gt; wrote in message
news:424c6cad_2@newsprd01...
&amp;gt; Thank you for your email.
&amp;gt; I tried all .net samples from the 2006 ObjectARX SDK and all .NET samples
I
&amp;gt; could find from ADN web site. But I still could not figure out my problem.
&amp;gt;
&amp;gt; I want to insert images into AutoCAD drawing file. I found an C++ sample
&amp;gt; from ADN, and I tried to user C#.net to do it. It doesn't work.
&amp;gt;
&amp;gt; Zhongwei
&amp;gt;
&amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt; news:424c413c_3@newsprd01...
&amp;gt; &amp;gt; The 2006 ObjectARX API contains a ton of managed code examples (look in
&amp;gt; &amp;gt; Samples/dotNet).  In addition, the new ObjectARX wizard gives you the
&amp;gt; &amp;gt; option
&amp;gt; &amp;gt; to create a project that has all of the compiler settings tweaked for a
&amp;gt; &amp;gt; Managed C++ arx.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Jon
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt; &amp;gt; news:424c2568_2@newsprd01...
&amp;gt; &amp;gt;&amp;gt; Jon,
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; Thank you for your reply.
&amp;gt; &amp;gt;&amp;gt; Your email does help. It's a way to use C++ ObjectARX power to solve C#
&amp;gt; &amp;gt; .net
&amp;gt; &amp;gt;&amp;gt; problems. We really need to have good documentation and samples for
.NET
&amp;gt; &amp;gt;&amp;gt; AutoCAD application.
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; Appreciate your help.
&amp;gt; &amp;gt;&amp;gt; Zhongwei
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt; &amp;gt;&amp;gt; news:424afb54$1_1@newsprd01...
&amp;gt; &amp;gt;&amp;gt; &amp;gt; What you can do is write a managed ObjectARX application in C++, and
&amp;gt; &amp;gt;&amp;gt; &amp;gt; expose
&amp;gt; &amp;gt;&amp;gt; &amp;gt; the functionality that you need in a managed class.  This is similar
to
&amp;gt; &amp;gt;&amp;gt; &amp;gt; writing a COM wrapper, except that you would essentially be writing a
&amp;gt; &amp;gt; .NET
&amp;gt; &amp;gt;&amp;gt; &amp;gt; wrapper.  Then, you can just reference this arx from your VB.NET or
C#
&amp;gt; &amp;gt;&amp;gt; &amp;gt; project and create an instance of your managed class.
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; Hope this helps,
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; Jon
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt; &amp;gt;&amp;gt; &amp;gt; news:4249acec_2@newsprd01...
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Is it possible to call C++ ObjectArx from .NET arx to overcome
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; limitations
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; of .NET arx?
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Many thanks in advance.
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Zhongwei Xia
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/ZXIA&gt;</description>
    <pubDate>Thu, 31 Mar 2005 21:47:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-03-31T21:47:38Z</dc:date>
    <item>
      <title>Call C++ ObjectArx from .NET arx to overcome the .NET arx limitation.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281524#M26975</link>
      <description>Is it possible to call C++ ObjectArx from .NET arx to overcome limitations 
of .NET arx?

Many thanks in advance.
Zhongwei Xia</description>
      <pubDate>Tue, 29 Mar 2005 19:30:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281524#M26975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-03-29T19:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Call C++ ObjectArx from .NET arx to overcome the .NET arx limitation.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281525#M26976</link>
      <description>What you can do is write a managed ObjectARX application in C++, and expose
the functionality that you need in a managed class.  This is similar to
writing a COM wrapper, except that you would essentially be writing a .NET
wrapper.  Then, you can just reference this arx from your VB.NET or C#
project and create an instance of your managed class.

Hope this helps,

Jon


"Zhongwei Xia" &lt;ZXIA&gt; wrote in message
news:4249acec_2@newsprd01...
&amp;gt; Is it possible to call C++ ObjectArx from .NET arx to overcome limitations
&amp;gt; of .NET arx?
&amp;gt;
&amp;gt; Many thanks in advance.
&amp;gt; Zhongwei Xia
&amp;gt;
&amp;gt;&lt;/ZXIA&gt;</description>
      <pubDate>Wed, 30 Mar 2005 19:17:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281525#M26976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-03-30T19:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Call C++ ObjectArx from .NET arx to overcome the .NET arx limitation.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281526#M26977</link>
      <description>Jon,

Thank you for your reply.
Your email does help. It's a way to use C++ ObjectARX power to solve C# .net 
problems. We really need to have good documentation and samples for .NET 
AutoCAD application.

Appreciate your help.
Zhongwei


"Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message 
news:424afb54$1_1@newsprd01...
&amp;gt; What you can do is write a managed ObjectARX application in C++, and 
&amp;gt; expose
&amp;gt; the functionality that you need in a managed class.  This is similar to
&amp;gt; writing a COM wrapper, except that you would essentially be writing a .NET
&amp;gt; wrapper.  Then, you can just reference this arx from your VB.NET or C#
&amp;gt; project and create an instance of your managed class.
&amp;gt;
&amp;gt; Hope this helps,
&amp;gt;
&amp;gt; Jon
&amp;gt;
&amp;gt;
&amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt; news:4249acec_2@newsprd01...
&amp;gt;&amp;gt; Is it possible to call C++ ObjectArx from .NET arx to overcome 
&amp;gt;&amp;gt; limitations
&amp;gt;&amp;gt; of .NET arx?
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; Many thanks in advance.
&amp;gt;&amp;gt; Zhongwei Xia
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;
&amp;gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;</description>
      <pubDate>Thu, 31 Mar 2005 16:29:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281526#M26977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-03-31T16:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Call C++ ObjectArx from .NET arx to overcome the .NET arx limitation.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281527#M26978</link>
      <description>The 2006 ObjectARX API contains a ton of managed code examples (look in
Samples/dotNet).  In addition, the new ObjectARX wizard gives you the option
to create a project that has all of the compiler settings tweaked for a
Managed C++ arx.

Jon



"Zhongwei Xia" &lt;ZXIA&gt; wrote in message
news:424c2568_2@newsprd01...
&amp;gt; Jon,
&amp;gt;
&amp;gt; Thank you for your reply.
&amp;gt; Your email does help. It's a way to use C++ ObjectARX power to solve C#
.net
&amp;gt; problems. We really need to have good documentation and samples for .NET
&amp;gt; AutoCAD application.
&amp;gt;
&amp;gt; Appreciate your help.
&amp;gt; Zhongwei
&amp;gt;
&amp;gt;
&amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt; news:424afb54$1_1@newsprd01...
&amp;gt; &amp;gt; What you can do is write a managed ObjectARX application in C++, and
&amp;gt; &amp;gt; expose
&amp;gt; &amp;gt; the functionality that you need in a managed class.  This is similar to
&amp;gt; &amp;gt; writing a COM wrapper, except that you would essentially be writing a
.NET
&amp;gt; &amp;gt; wrapper.  Then, you can just reference this arx from your VB.NET or C#
&amp;gt; &amp;gt; project and create an instance of your managed class.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Hope this helps,
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Jon
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt; &amp;gt; news:4249acec_2@newsprd01...
&amp;gt; &amp;gt;&amp;gt; Is it possible to call C++ ObjectArx from .NET arx to overcome
&amp;gt; &amp;gt;&amp;gt; limitations
&amp;gt; &amp;gt;&amp;gt; of .NET arx?
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; Many thanks in advance.
&amp;gt; &amp;gt;&amp;gt; Zhongwei Xia
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/ZXIA&gt;</description>
      <pubDate>Thu, 31 Mar 2005 18:28:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281527#M26978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-03-31T18:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Call C++ ObjectArx from .NET arx to overcome the .NET arx limitation.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281528#M26979</link>
      <description>Thank you for your email.
I tried all .net samples from the 2006 ObjectARX SDK and all .NET samples I 
could find from ADN web site. But I still could not figure out my problem.

I want to insert images into AutoCAD drawing file. I found an C++ sample 
from ADN, and I tried to user C#.net to do it. It doesn't work.

Zhongwei

"Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message 
news:424c413c_3@newsprd01...
&amp;gt; The 2006 ObjectARX API contains a ton of managed code examples (look in
&amp;gt; Samples/dotNet).  In addition, the new ObjectARX wizard gives you the 
&amp;gt; option
&amp;gt; to create a project that has all of the compiler settings tweaked for a
&amp;gt; Managed C++ arx.
&amp;gt;
&amp;gt; Jon
&amp;gt;
&amp;gt;
&amp;gt;
&amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt; news:424c2568_2@newsprd01...
&amp;gt;&amp;gt; Jon,
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; Thank you for your reply.
&amp;gt;&amp;gt; Your email does help. It's a way to use C++ ObjectARX power to solve C#
&amp;gt; .net
&amp;gt;&amp;gt; problems. We really need to have good documentation and samples for .NET
&amp;gt;&amp;gt; AutoCAD application.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; Appreciate your help.
&amp;gt;&amp;gt; Zhongwei
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt;&amp;gt; news:424afb54$1_1@newsprd01...
&amp;gt;&amp;gt; &amp;gt; What you can do is write a managed ObjectARX application in C++, and
&amp;gt;&amp;gt; &amp;gt; expose
&amp;gt;&amp;gt; &amp;gt; the functionality that you need in a managed class.  This is similar to
&amp;gt;&amp;gt; &amp;gt; writing a COM wrapper, except that you would essentially be writing a
&amp;gt; .NET
&amp;gt;&amp;gt; &amp;gt; wrapper.  Then, you can just reference this arx from your VB.NET or C#
&amp;gt;&amp;gt; &amp;gt; project and create an instance of your managed class.
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; Hope this helps,
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; Jon
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt;&amp;gt; &amp;gt; news:4249acec_2@newsprd01...
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Is it possible to call C++ ObjectArx from .NET arx to overcome
&amp;gt;&amp;gt; &amp;gt;&amp;gt; limitations
&amp;gt;&amp;gt; &amp;gt;&amp;gt; of .NET arx?
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Many thanks in advance.
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Zhongwei Xia
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;
&amp;gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;</description>
      <pubDate>Thu, 31 Mar 2005 21:33:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281528#M26979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-03-31T21:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Call C++ ObjectArx from .NET arx to overcome the .NET arx limitation.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281529#M26980</link>
      <description>As I said, you can use the ObjectARX wizard to create an ARX using Managed
C++.  Create a managed class, and in that class, declare a static function
that implements the C++ sample code that you found.

Then, in your C# project, reference the ARX module and call the static
function that you declared in your managed class.  There are other ways to
do this &amp;amp; you can get more complicated and elegant than this, but that's the
basic idea.



"Zhongwei Xia" &lt;ZXIA&gt; wrote in message
news:424c6cad_2@newsprd01...
&amp;gt; Thank you for your email.
&amp;gt; I tried all .net samples from the 2006 ObjectARX SDK and all .NET samples
I
&amp;gt; could find from ADN web site. But I still could not figure out my problem.
&amp;gt;
&amp;gt; I want to insert images into AutoCAD drawing file. I found an C++ sample
&amp;gt; from ADN, and I tried to user C#.net to do it. It doesn't work.
&amp;gt;
&amp;gt; Zhongwei
&amp;gt;
&amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt; news:424c413c_3@newsprd01...
&amp;gt; &amp;gt; The 2006 ObjectARX API contains a ton of managed code examples (look in
&amp;gt; &amp;gt; Samples/dotNet).  In addition, the new ObjectARX wizard gives you the
&amp;gt; &amp;gt; option
&amp;gt; &amp;gt; to create a project that has all of the compiler settings tweaked for a
&amp;gt; &amp;gt; Managed C++ arx.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Jon
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt; &amp;gt; news:424c2568_2@newsprd01...
&amp;gt; &amp;gt;&amp;gt; Jon,
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; Thank you for your reply.
&amp;gt; &amp;gt;&amp;gt; Your email does help. It's a way to use C++ ObjectARX power to solve C#
&amp;gt; &amp;gt; .net
&amp;gt; &amp;gt;&amp;gt; problems. We really need to have good documentation and samples for
.NET
&amp;gt; &amp;gt;&amp;gt; AutoCAD application.
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; Appreciate your help.
&amp;gt; &amp;gt;&amp;gt; Zhongwei
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt; &amp;gt;&amp;gt; news:424afb54$1_1@newsprd01...
&amp;gt; &amp;gt;&amp;gt; &amp;gt; What you can do is write a managed ObjectARX application in C++, and
&amp;gt; &amp;gt;&amp;gt; &amp;gt; expose
&amp;gt; &amp;gt;&amp;gt; &amp;gt; the functionality that you need in a managed class.  This is similar
to
&amp;gt; &amp;gt;&amp;gt; &amp;gt; writing a COM wrapper, except that you would essentially be writing a
&amp;gt; &amp;gt; .NET
&amp;gt; &amp;gt;&amp;gt; &amp;gt; wrapper.  Then, you can just reference this arx from your VB.NET or
C#
&amp;gt; &amp;gt;&amp;gt; &amp;gt; project and create an instance of your managed class.
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; Hope this helps,
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; Jon
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt; &amp;gt;&amp;gt; &amp;gt; news:4249acec_2@newsprd01...
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Is it possible to call C++ ObjectArx from .NET arx to overcome
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; limitations
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; of .NET arx?
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Many thanks in advance.
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Zhongwei Xia
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/ZXIA&gt;</description>
      <pubDate>Thu, 31 Mar 2005 21:47:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281529#M26980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-03-31T21:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Call C++ ObjectArx from .NET arx to overcome the .NET arx limitation.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281530#M26981</link>
      <description>BTW:  The polysamp example shows a very detailed example of this
(samples/entity/polysamp).

Hope this helps,

Jon


"Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
news:424c6ffa$1_3@newsprd01...
&amp;gt; As I said, you can use the ObjectARX wizard to create an ARX using Managed
&amp;gt; C++.  Create a managed class, and in that class, declare a static function
&amp;gt; that implements the C++ sample code that you found.
&amp;gt;
&amp;gt; Then, in your C# project, reference the ARX module and call the static
&amp;gt; function that you declared in your managed class.  There are other ways to
&amp;gt; do this &amp;amp; you can get more complicated and elegant than this, but that's
the
&amp;gt; basic idea.
&amp;gt;
&amp;gt;
&amp;gt;
&amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt; news:424c6cad_2@newsprd01...
&amp;gt; &amp;gt; Thank you for your email.
&amp;gt; &amp;gt; I tried all .net samples from the 2006 ObjectARX SDK and all .NET
samples
&amp;gt; I
&amp;gt; &amp;gt; could find from ADN web site. But I still could not figure out my
problem.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; I want to insert images into AutoCAD drawing file. I found an C++ sample
&amp;gt; &amp;gt; from ADN, and I tried to user C#.net to do it. It doesn't work.
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; Zhongwei
&amp;gt; &amp;gt;
&amp;gt; &amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt; &amp;gt; news:424c413c_3@newsprd01...
&amp;gt; &amp;gt; &amp;gt; The 2006 ObjectARX API contains a ton of managed code examples (look
in
&amp;gt; &amp;gt; &amp;gt; Samples/dotNet).  In addition, the new ObjectARX wizard gives you the
&amp;gt; &amp;gt; &amp;gt; option
&amp;gt; &amp;gt; &amp;gt; to create a project that has all of the compiler settings tweaked for
a
&amp;gt; &amp;gt; &amp;gt; Managed C++ arx.
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt; Jon
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt; &amp;gt; &amp;gt; news:424c2568_2@newsprd01...
&amp;gt; &amp;gt; &amp;gt;&amp;gt; Jon,
&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; Thank you for your reply.
&amp;gt; &amp;gt; &amp;gt;&amp;gt; Your email does help. It's a way to use C++ ObjectARX power to solve
C#
&amp;gt; &amp;gt; &amp;gt; .net
&amp;gt; &amp;gt; &amp;gt;&amp;gt; problems. We really need to have good documentation and samples for
&amp;gt; .NET
&amp;gt; &amp;gt; &amp;gt;&amp;gt; AutoCAD application.
&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; Appreciate your help.
&amp;gt; &amp;gt; &amp;gt;&amp;gt; Zhongwei
&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt; &amp;gt; &amp;gt;&amp;gt; news:424afb54$1_1@newsprd01...
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; What you can do is write a managed ObjectARX application in C++,
and
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; expose
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; the functionality that you need in a managed class.  This is
similar
&amp;gt; to
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; writing a COM wrapper, except that you would essentially be writing
a
&amp;gt; &amp;gt; &amp;gt; .NET
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; wrapper.  Then, you can just reference this arx from your VB.NET or
&amp;gt; C#
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; project and create an instance of your managed class.
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; Hope this helps,
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; Jon
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; news:4249acec_2@newsprd01...
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Is it possible to call C++ ObjectArx from .NET arx to overcome
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; limitations
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; of .NET arx?
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Many thanks in advance.
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Zhongwei Xia
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt; &amp;gt;
&amp;gt;
&amp;gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;</description>
      <pubDate>Fri, 01 Apr 2005 14:50:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281530#M26981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-01T14:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Call C++ ObjectArx from .NET arx to overcome the .NET arx limitation.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281531#M26982</link>
      <description>Jon,

Your answers are very helpful. I'm trying to do what you suggested. I'll let 
you know if I get things worked.

Thank you very much.
Zhongwei

"Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message 
news:424d5fcc$1_3@newsprd01...
&amp;gt; BTW:  The polysamp example shows a very detailed example of this
&amp;gt; (samples/entity/polysamp).
&amp;gt;
&amp;gt; Hope this helps,
&amp;gt;
&amp;gt; Jon
&amp;gt;
&amp;gt;
&amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt; news:424c6ffa$1_3@newsprd01...
&amp;gt;&amp;gt; As I said, you can use the ObjectARX wizard to create an ARX using 
&amp;gt;&amp;gt; Managed
&amp;gt;&amp;gt; C++.  Create a managed class, and in that class, declare a static 
&amp;gt;&amp;gt; function
&amp;gt;&amp;gt; that implements the C++ sample code that you found.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; Then, in your C# project, reference the ARX module and call the static
&amp;gt;&amp;gt; function that you declared in your managed class.  There are other ways 
&amp;gt;&amp;gt; to
&amp;gt;&amp;gt; do this &amp;amp; you can get more complicated and elegant than this, but that's
&amp;gt; the
&amp;gt;&amp;gt; basic idea.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt;&amp;gt; news:424c6cad_2@newsprd01...
&amp;gt;&amp;gt; &amp;gt; Thank you for your email.
&amp;gt;&amp;gt; &amp;gt; I tried all .net samples from the 2006 ObjectARX SDK and all .NET
&amp;gt; samples
&amp;gt;&amp;gt; I
&amp;gt;&amp;gt; &amp;gt; could find from ADN web site. But I still could not figure out my
&amp;gt; problem.
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; I want to insert images into AutoCAD drawing file. I found an C++ 
&amp;gt;&amp;gt; &amp;gt; sample
&amp;gt;&amp;gt; &amp;gt; from ADN, and I tried to user C#.net to do it. It doesn't work.
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; Zhongwei
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt;&amp;gt; &amp;gt; news:424c413c_3@newsprd01...
&amp;gt;&amp;gt; &amp;gt; &amp;gt; The 2006 ObjectARX API contains a ton of managed code examples (look
&amp;gt; in
&amp;gt;&amp;gt; &amp;gt; &amp;gt; Samples/dotNet).  In addition, the new ObjectARX wizard gives you the
&amp;gt;&amp;gt; &amp;gt; &amp;gt; option
&amp;gt;&amp;gt; &amp;gt; &amp;gt; to create a project that has all of the compiler settings tweaked for
&amp;gt; a
&amp;gt;&amp;gt; &amp;gt; &amp;gt; Managed C++ arx.
&amp;gt;&amp;gt; &amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; Jon
&amp;gt;&amp;gt; &amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt;&amp;gt; &amp;gt; &amp;gt; news:424c2568_2@newsprd01...
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; Jon,
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; Thank you for your reply.
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; Your email does help. It's a way to use C++ ObjectARX power to solve
&amp;gt; C#
&amp;gt;&amp;gt; &amp;gt; &amp;gt; .net
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; problems. We really need to have good documentation and samples for
&amp;gt;&amp;gt; .NET
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; AutoCAD application.
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; Appreciate your help.
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; Zhongwei
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; news:424afb54$1_1@newsprd01...
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; What you can do is write a managed ObjectARX application in C++,
&amp;gt; and
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; expose
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; the functionality that you need in a managed class.  This is
&amp;gt; similar
&amp;gt;&amp;gt; to
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; writing a COM wrapper, except that you would essentially be 
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; writing
&amp;gt; a
&amp;gt;&amp;gt; &amp;gt; &amp;gt; .NET
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; wrapper.  Then, you can just reference this arx from your VB.NET 
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; or
&amp;gt;&amp;gt; C#
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; project and create an instance of your managed class.
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; Hope this helps,
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; Jon
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt; news:4249acec_2@newsprd01...
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Is it possible to call C++ ObjectArx from .NET arx to overcome
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; limitations
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; of .NET arx?
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Many thanks in advance.
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Zhongwei Xia
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;
&amp;gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/JRIZZO&gt;</description>
      <pubDate>Fri, 01 Apr 2005 15:13:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281531#M26982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-01T15:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Call C++ ObjectArx from .NET arx to overcome the .NET arx limitation.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281532#M26983</link>
      <description>Hi, Jon,

I tried to do that, but I'm still having hard time to make it work.
I created a simple C++ ObjectARX (just print a line in AutoCAD), then tried 
to user managed class to wrap it. It just doesn't work.

Do you have any simple sample?

Thank you very much.
Zhongwei

"Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message 
news:424c6ffa$1_3@newsprd01...
&amp;gt; As I said, you can use the ObjectARX wizard to create an ARX using Managed
&amp;gt; C++.  Create a managed class, and in that class, declare a static function
&amp;gt; that implements the C++ sample code that you found.
&amp;gt;
&amp;gt; Then, in your C# project, reference the ARX module and call the static
&amp;gt; function that you declared in your managed class.  There are other ways to
&amp;gt; do this &amp;amp; you can get more complicated and elegant than this, but that's 
&amp;gt; the
&amp;gt; basic idea.
&amp;gt;
&amp;gt;
&amp;gt;
&amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt; news:424c6cad_2@newsprd01...
&amp;gt;&amp;gt; Thank you for your email.
&amp;gt;&amp;gt; I tried all .net samples from the 2006 ObjectARX SDK and all .NET samples
&amp;gt; I
&amp;gt;&amp;gt; could find from ADN web site. But I still could not figure out my 
&amp;gt;&amp;gt; problem.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; I want to insert images into AutoCAD drawing file. I found an C++ sample
&amp;gt;&amp;gt; from ADN, and I tried to user C#.net to do it. It doesn't work.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; Zhongwei
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt;&amp;gt; news:424c413c_3@newsprd01...
&amp;gt;&amp;gt; &amp;gt; The 2006 ObjectARX API contains a ton of managed code examples (look in
&amp;gt;&amp;gt; &amp;gt; Samples/dotNet).  In addition, the new ObjectARX wizard gives you the
&amp;gt;&amp;gt; &amp;gt; option
&amp;gt;&amp;gt; &amp;gt; to create a project that has all of the compiler settings tweaked for a
&amp;gt;&amp;gt; &amp;gt; Managed C++ arx.
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; Jon
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt;&amp;gt; &amp;gt; news:424c2568_2@newsprd01...
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Jon,
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Thank you for your reply.
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Your email does help. It's a way to use C++ ObjectARX power to solve 
&amp;gt;&amp;gt; &amp;gt;&amp;gt; C#
&amp;gt;&amp;gt; &amp;gt; .net
&amp;gt;&amp;gt; &amp;gt;&amp;gt; problems. We really need to have good documentation and samples for
&amp;gt; .NET
&amp;gt;&amp;gt; &amp;gt;&amp;gt; AutoCAD application.
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Appreciate your help.
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Zhongwei
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt;&amp;gt; &amp;gt;&amp;gt; news:424afb54$1_1@newsprd01...
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; What you can do is write a managed ObjectARX application in C++, and
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; expose
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; the functionality that you need in a managed class.  This is similar
&amp;gt; to
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; writing a COM wrapper, except that you would essentially be writing 
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; a
&amp;gt;&amp;gt; &amp;gt; .NET
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; wrapper.  Then, you can just reference this arx from your VB.NET or
&amp;gt; C#
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; project and create an instance of your managed class.
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Hope this helps,
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Jon
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; news:4249acec_2@newsprd01...
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Is it possible to call C++ ObjectArx from .NET arx to overcome
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; limitations
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; of .NET arx?
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Many thanks in advance.
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Zhongwei Xia
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;
&amp;gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;</description>
      <pubDate>Fri, 01 Apr 2005 23:49:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281532#M26983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-01T23:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Call C++ ObjectArx from .NET arx to overcome the .NET arx limitation.</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281533#M26984</link>
      <description>Can you give me a simple sample? I'm still having trouble to make it work.

Thank you very much.
Zhongwei

"Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message 
news:424c6ffa$1_3@newsprd01...
&amp;gt; As I said, you can use the ObjectARX wizard to create an ARX using Managed
&amp;gt; C++.  Create a managed class, and in that class, declare a static function
&amp;gt; that implements the C++ sample code that you found.
&amp;gt;
&amp;gt; Then, in your C# project, reference the ARX module and call the static
&amp;gt; function that you declared in your managed class.  There are other ways to
&amp;gt; do this &amp;amp; you can get more complicated and elegant than this, but that's 
&amp;gt; the
&amp;gt; basic idea.
&amp;gt;
&amp;gt;
&amp;gt;
&amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt; news:424c6cad_2@newsprd01...
&amp;gt;&amp;gt; Thank you for your email.
&amp;gt;&amp;gt; I tried all .net samples from the 2006 ObjectARX SDK and all .NET samples
&amp;gt; I
&amp;gt;&amp;gt; could find from ADN web site. But I still could not figure out my 
&amp;gt;&amp;gt; problem.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; I want to insert images into AutoCAD drawing file. I found an C++ sample
&amp;gt;&amp;gt; from ADN, and I tried to user C#.net to do it. It doesn't work.
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; Zhongwei
&amp;gt;&amp;gt;
&amp;gt;&amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt;&amp;gt; news:424c413c_3@newsprd01...
&amp;gt;&amp;gt; &amp;gt; The 2006 ObjectARX API contains a ton of managed code examples (look in
&amp;gt;&amp;gt; &amp;gt; Samples/dotNet).  In addition, the new ObjectARX wizard gives you the
&amp;gt;&amp;gt; &amp;gt; option
&amp;gt;&amp;gt; &amp;gt; to create a project that has all of the compiler settings tweaked for a
&amp;gt;&amp;gt; &amp;gt; Managed C++ arx.
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; Jon
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt;&amp;gt; &amp;gt; news:424c2568_2@newsprd01...
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Jon,
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Thank you for your reply.
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Your email does help. It's a way to use C++ ObjectARX power to solve 
&amp;gt;&amp;gt; &amp;gt;&amp;gt; C#
&amp;gt;&amp;gt; &amp;gt; .net
&amp;gt;&amp;gt; &amp;gt;&amp;gt; problems. We really need to have good documentation and samples for
&amp;gt; .NET
&amp;gt;&amp;gt; &amp;gt;&amp;gt; AutoCAD application.
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Appreciate your help.
&amp;gt;&amp;gt; &amp;gt;&amp;gt; Zhongwei
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; "Jon Rizzo" &lt;JRIZZO at="" langan="" dot="" com=""&gt; wrote in message
&amp;gt;&amp;gt; &amp;gt;&amp;gt; news:424afb54$1_1@newsprd01...
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; What you can do is write a managed ObjectARX application in C++, and
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; expose
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; the functionality that you need in a managed class.  This is similar
&amp;gt; to
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; writing a COM wrapper, except that you would essentially be writing 
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; a
&amp;gt;&amp;gt; &amp;gt; .NET
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; wrapper.  Then, you can just reference this arx from your VB.NET or
&amp;gt; C#
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; project and create an instance of your managed class.
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Hope this helps,
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Jon
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; "Zhongwei Xia" &lt;ZXIA&gt; wrote in message
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; news:4249acec_2@newsprd01...
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Is it possible to call C++ ObjectArx from .NET arx to overcome
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; limitations
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; of .NET arx?
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Many thanks in advance.
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Zhongwei Xia
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt; &amp;gt;
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;
&amp;gt;
&amp;gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;&lt;/ZXIA&gt;&lt;/JRIZZO&gt;</description>
      <pubDate>Mon, 04 Apr 2005 20:25:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/call-c-objectarx-from-net-arx-to-overcome-the-net-arx-limitation/m-p/1281533#M26984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-04-04T20:25:27Z</dc:date>
    </item>
  </channel>
</rss>

