- UID
- 52967
- 积分
- 0
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2003-5-27
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
在我的程序中,如下:
// Open the enity for a read operation
acdbOpenObject(pDict, dictObjId, AcDb::kForWrite);
pDict->setAt(strHandle, pXrec, xrecObjId);
pDict->close();
prbXtn = acutBuildList(AcDb::kDxfText, windotype,
AcDb::kDxfBool, bl,
AcDb::kDxfInt32, getWindowRows(),
AcDb::kDxfInt32, getWindowCols(),
AcDb::kDxfReal, getWindowLength(),
AcDb::kDxfReal, getWindowHeight(),
AcDb::kDxfXCoord, lwrleft,
RTNONE);
// Add the data list to the Xrecord. Notice that this
// member function takes a reference to resbuf *NOT* a
// pointer to resbuf, so you must dereference the
// pointer before sending it.
//
pXrec->setFromRbChain(*prbXtn);
pXrec->close();
acutRelRb(prbXtn);
上面的是加在xrecord中的数据;其中有一个AcDb::kDxfBool, bl值;
当我们再次读取这个xrecord时,我们对读到的数据类型进行判断时,对于AcDb::kDxfInt32型的我们可以用RTLONG来处理得到的数据,但是对于AcDb::kDxfBool,有没有对应的RTXXX? |
|