现在的位置: 首页 > 综合 > 正文

why gpDesc is NULL?

2013年04月23日 ⁄ 综合 ⁄ 共 423字 ⁄ 字号 评论关闭

 I have definde a entity derived from AcDbEntity.
But when i use new to create a entity, i find that myentity'gpDesc is null. So i can not append it to the AcDbDatebase.
I have use the ACRX_DECLARE_MEMBERS and ACRX_DXF_DEFINE_MEMBERS.
that is why?

You probably forgot to add your custom class to the ARX runtime class
tree. Make sure you call your MyEntity::rxInit() during kLoadAppMsg,
followed by acrxBuildClassHierarchy(). Best would be to use the ObjectARX
wizard, which takes care of all that for you

抱歉!评论已关闭.