zyd123 发表于 2008-9-29 21:03:00

arx中自定义实体中变量的问题,急求帮助!

<p>'Acad::ErrorStatus AcDbDwgFiler::writeItem(const AcDbHardOwnershipId &amp;)' : cannot convert parameter 1 from 'const AcGePoint3dArray' to 'const AcDbHardOwnershipId &amp;'<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Reason: cannot convert from 'const AcGePoint3dArray' to 'const AcDbHardOwnershipId'<br/></p><p>用AcGePoint3d&nbsp;,doublel类型的可以,但用AcGePoint3dArray就不行?</p>private:<br/>&nbsp;//Member variables<br/>&nbsp;&nbsp;&nbsp; int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; isVisibilitable;<br/>&nbsp;AcGePoint3dArray&nbsp;&nbsp;&nbsp; ptarray;<p>而我现在必须定义一个AcGePoint3dArray&nbsp;的变量,这个数据在dwgOutFields函数和dxfInFields函数中如何用呢?</p>

zyd123 发表于 2008-10-1 15:13:00

没有人遇到过这样的问题吗?那位大侠帮帮忙呀

chenknight 发表于 2008-10-20 21:07:00

对于保存不定长的数据比如数组,你先把数组大小定在开头然后再一个一个数据保存,读取的时候先读取数组大小,再按数组大小小循环读取内容
页: [1]
查看完整版本: arx中自定义实体中变量的问题,急求帮助!