love2002bj 发表于 2010-4-19 18:35:00

求判断实体指针类型的函数

得到一个 实体 指针, AcDbEntity *pEnt;打开实体后 我想判别 是 什么类型的实体指针。
多段线 还是 圆 或者 圆弧 。。。 ,   

找了找提供的reference 函数库, 英文不好,没找到。

luowy 发表于 2010-4-21 15:54:00

使用AcDbObject::desc(),这个会返回一个类的指针

love2002bj 发表于 2010-4-22 19:44:00

Returns a pointer to theobject representing the specific class, or most recent parent class explicitly registered with ObjectARX of either the pointer type used to invoke it or the class qualifier used with it.   
desc()· 返回acrxclass object指针 ,代表指定类或者最近的父类,此父类被 此指针调用或者类限制符来使用的objectArx 明确注册的。·
我明白了。 和 iskindof 配合使用。
之前就怀疑是这个函数了,可惜被后面半句英语 给弄糊涂了。·感谢2楼。
页: [1]
查看完整版本: 求判断实体指针类型的函数