ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom COM ARX Wrapper Wiz query

1 REPLY 1
Reply
Message 1 of 2
alistairc
508 Views, 1 Reply

Custom COM ARX Wrapper Wiz query

I am developing an Object ARX 2006 app (as a COM server for use with VB6 client apps) with Visual Studio 7.0 2002 with the ObjectArx Wizards for AutoCAD 2006 installed.

I am trying to add a custom COM arx Wrapper class to my existing arx so that my VB client can then access an external dwg's AcadDatabase object (hopefully).

In the wizard help page "ObjectARX Wizards for AutoCAD 2006 Help / Class Wizards /Custom Object COM Wrapper" , the title says....

"ObjectARX Custom Object COM Wrapper Class Wizard" then says "This Wizard allows the exposure of ObjectARX and ObjectDBX custom classes through COM Automation" - just what I want.

When I try to use the wizard to add an ObjectArx wrapper via Class View Add Class Categories : VisualC++/ObjectArx - I have the choice of one of 7 templates,

ObjectDBX COM Wrapper object
AutoCAD Object Dynamic Property
Object DBX Custom Object Class Wizard
ObjectARX/DBX Reactors Class Wizard
ObjectARX MFC Support Class Wizard
ObjectARX Custom Entity .NET Wrapper Wizard
ObjectARX Jig Wizard

Where is my ObjectARX COM Wrapper object wizard ? Is there one?

I am not using ObjectDBX and anyway if I try to invoke the ObjectDBX COM Wrapper object a message box appears with the rather sinister "Grand Moff Tarkin-esque" warning "COM Wrapper for Custom Object should better not be implemented in .ARX project. Do you want to continue anyway? Yes/No"

Am I missing something ?

ps - The existing (works fine) VB client app runs in an AutoCAD session and modifies Xdata and some properties (eg color) of entities in a series of many dwgs externally ie not in current Model Space.
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: alistairc

Hi,

you should use the 'ObjectDBX COM Wrapper object' wizard to create a COM
wrapper for your ARX class.
you can answer 'Yes' to the "COM Wrapper for Custom Object should better not
be implemented in .ARX project. Do you want to continue anyway? Yes/No"
question. We are recommending to implement a custom object/entity into a
.dbx module rather than .arx. Therefore the COM wrapper should as well. But
there is no problem to do all this in a .arx module.

The only thing the COM wrapper Wizard won;t do for you is to modify your ARX
custom classes getClassID() method to return the GUID of your COM coclass
object. So do not forget to do it.

cheers
cyrille

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost