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?