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

Customize creation of AcDbEntity derived class

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
255 Views, 0 Replies

Customize creation of AcDbEntity derived class

Hi, I have my own class like:

 

class MyCustomObject: public AcDbEntity

 

The problem is that I want to create object of it in some custom way. So I will need some factory mechanism to do that. How can I achieve this in ObjectARX?

 

For example, let's say I want to have constructor like:

 

MyCustomObject(ISomeService & service);

 

Now I want that everytime Autocad creates object of my class it will use some custom way to do this, like:

 

AcDbEntity * createObject()

{

  return new MyCustomObject(someOtherObject);

}

 

How can I achieve that "manual" kind of object creation?

0 REPLIES 0

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report