几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】oddbentity derived class name (http://www.dimcax.com/hust/showthread.php?t=17517)

yang686526 2009-05-06 07:39 PM

【转帖】oddbentity derived class name
 
oddbentity derived class name
oddbentity derived class name
this might be a stupid question, but how do i find the name of the derived class name of an oddbentity? i tried odrxobject::desc(), and then odrxclass::name(), but that seems to always return "acdbentity".
i am using protocol extension and have handler classes for some (but not all) oddbentity-derived classes. am improving support for entity types as i encounter data that has them, but need an easy way to tell what type each entity is.
desc() is static function.
isa() - is virtual function which returns class of derived object.
sergey slezkin


所有的时间均为北京时间。 现在的时间是 04:53 PM.