Custom Class

Custom Class

Anonymous
Not applicable
227 Views
1 Reply
Message 1 of 2

Custom Class

Anonymous
Not applicable
In ObjectARX, I am able to create a custom class(CustomEllipse) by deriving
from an existing Autocad class(ex: AcDbEllipse). How do I create a custom
class(CustomBox) by deriving it from a class I create(Box)? Is there a way
to register a new class(Box) with Autocad?
0 Likes
228 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
All graphical objects must derrive from AcDbEntity or another class derrived
from AcDbEntity. Just override worldDraw() in your new class to display it
in the drawing.

Jon Rizzo
Langan Engineering and Environmental Services, Inc.


"Dave B" wrote in message
news:8695054BDF64E1535DFF62ECFEAD5C61@in.WebX.maYIadrTaRb...
> In ObjectARX, I am able to create a custom class(CustomEllipse) by
deriving
> from an existing Autocad class(ex: AcDbEllipse). How do I create a custom
> class(CustomBox) by deriving it from a class I create(Box)? Is there a
way
> to register a new class(Box) with Autocad?
>
>
0 Likes