- 积分
- 12459
- 明经币
- 个
- 注册时间
- 2003-5-28
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
楼主 |
发表于 2004-9-25 00:31:00
|
显示全部楼层
回复
不太明白:
rex12: With acdbOpenAcDbEntity() you can open ONLY Objects derived from AcDbEntity, With acdbOpenAcDbObject() you can open ONLY Objects NOT derived from AcDbEntity(that is, have no graphics). acdbOpenObject()-> there are more possibilities. All descriptions you will find in docs. That is a mention for objects openning. There is no matter if you want to open an AcDb Entity or AcDbObject derived object.
Art Cooney: That's not correct. acdbOpenAcDbObject() will open objects that are derived from AcDbEntity - it will open any type of object.
rex12: well it's may be, I haven't try it, all i have done was to read reference and there that is written. So the reference is not correct or ...? Generally, I use acdbOpenObject function to open an object. Best Regards
Art Cooney: acdbOpenAcDbEntity() checks to see if the object being opened is of a class directly or indirectly derived from AcDbEntity and returns an error if it is not. It also takes a reference to an AcDbEntity* as an argument and sets it to point to the opened entity. acdbOpenAcDbObject will open any object. It takes a reference to an AcDbObject* as AcDbObject* as an argument and sets it to point to the opened object. acdbOpenObject() is template function that is implemented for each class and takes a reference to a pointer to that class and sets it to point to the opened object. This function uses acdbOpenAcDbObject() to do the actual open operation.
|
|