- UID
- 1
- 积分
- 16111
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-1-3
- 最后登录
- 1970-1-1
|
发表于 2003-1-8 22:23:39
|
显示全部楼层
Re: [求助]:关层有问题!
最初由 jjiangia 发布
[B]我用以下程序在acad 14中关掉层LayName:
AcDbLayerTable *pLayTbl;
acdbCurDwg()->getLayerTable(pLayTbl,AcDb::kForRead);
AcDbLayerTableRecord *pLayTblRcd;
pLayTbl->getAt(LayName,pLayTblRcd,AcDb::kForWr... [/B]
UNDO只有记录的UNDO信息的,才会恢复,对象修改后,调用下
assertWriteEnabled() ,参数给autoundo
- <normalfont>
- The assertWriteEnabled() function has the following signature:
- void assertWriteEnabled(
- Adesk::Boolean autoUndo = Adesk::kTrue,
- Adesk::Boolean recordModified = Adesk::kTrue);
- When a modification function calls assertWriteEnabled(), it first checks the value of the recordModified parameter.
- If recordModified is kFalse, no undo recording is performed. If recordModified is kTrue,
- it next checks the autoUndo parameter, which specifies whether an auto undo operation should be performed.
- If autoUndo is kTrue (the default), the full object state is automatically written to the object's undo filer.
- If you specify kFalse for autoUndo, no information is recorded. AutoCAD assumes that your modification
- function will take care of recording the changed object state to the object's undo filer.
- Even if you plan to implement a partial undo mechanism for your class, you can rely on automatic
- undo in the first stages of development.
- </normalfont>
复制代码 |
|