- UID
- 1
- 积分
- 15892
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-1-3
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
问题:
Acad::eWrongObjectType error with AcDbDictionary::setAt()
解答:
So what could cause the AcDbDictionary::setAt() to return Acad::eWrongObjectType error?
Unfortunately, this error is not documented for the AcDbDictionary::setAt method but there could be a couple of reasons why you could encounter this error.
If you are adding a custom object to the dictionary, you need to register that class with AutoCAD. If not, this could be the source of error.
In the acrxEntryPoint's kInitAppMsg handler of the application, add:
<custom_object_name here>::rxInit () ;
acrxBuildClassHierarchy () ;
Within the kUnloadAppMsg handler:
deleteAcRxClass (<custom_object_name here>::desc ()) ;
If you adding another object which isn't a custom object, or if you did what is explained above, then it means you are trying to add an object which can't sit into a AcDbDictionary object such as an entity (a graphical object).
|
|