ObjectARX学习笔记(三十五)----外部参照相关的操作
来源:互联网 发布:ubuntu撤销命令 编辑:程序博客网 时间:2024/05/01 06:23
Acad::ErrorStatus acdbResolveCurrentXRefs(AcDbDatabase* pHostDb, bool useThreadEngine = true, bool doNewOnly = false);/* acdbAttachXref -- This function is used to attach a new xref to the specified file (pFilename) to a given database (pDb).. A new block table record with the name specified by pBlockName will be created and resolved as an external reference. The id of the new record will be set into xrefBlkId.*/Acad::ErrorStatus acdbAttachXref(AcDbDatabase* pHostDb, const ACHAR * pFilename, const ACHAR * pBlockName, AcDbObjectId& xrefBlkId);/* acdbOverlayhXref -- This function is used to overlay a new xref to the specified file (pFilename) to a given database (pDb).. A new block table record with the name specified by pBlockName will be created and resolved as an external reference and flagged as an overlay. The id of the new record will be set into xrefBlkId.*/Acad::ErrorStatus acdbOverlayXref(AcDbDatabase* pHostDb, const ACHAR * pFilename, const ACHAR * pBlockName, AcDbObjectId& xrefBlkId);/* acdbDetachXref -- This function is used to detach a specified xref (xrefBlkId) from the given database (pDb). Note, references to the xref should be erased prior to using this function.*/Acad::ErrorStatus acdbDetachXref(AcDbDatabase* pHostDb, const AcDbObjectId& xrefBlkId);Acad::ErrorStatus acdbUnloadXrefs(AcDbDatabase* pHostDb, const AcDbObjectIdArray& xrefBlkIds, const bool bQuiet = true);Acad::ErrorStatus acdbReloadXrefs(AcDbDatabase* pHostDb, const AcDbObjectIdArray& xrefBlkIds, bool bQuiet = true);Acad::ErrorStatus acdbBindXrefs(AcDbDatabase* pHostDb, const AcDbObjectIdArray& xrefBlkIds, const bool bInsertBind, const bool bAllowUnresolved = false, const bool bQuiet = true);Acad::ErrorStatus acdbXBindXrefs(AcDbDatabase* pHostDb, const AcDbObjectIdArray xrefSymbolIds, const bool bInsertBind, const bool bQuiet = true);//以下是使用例子AcDbDatabase *pDb = acdbCurDwg();if (pDb == NULL){return;}AcApDocument * pDoc = acDocManager->curDocument();if (pDoc == NULL)return ; //锁定文档很重要 否则会执行失败acDocManager->lockDocument(pDoc);Acad::ErrorStatus es;es = acdbBindXrefs(pDb,m_entIdArry,true);//插入当前dwg/*其他的绑定附加 拆离 卸载 类似 把函数换掉既可*/if (es == Acad::eOk){acutPrintf(_T("\n绑定外部参照成功!\n"));}m_StrXrefArray.RemoveAll();actrTransactionManager->flushGraphics();acedUpdateDisplay();acDocManager->unlockDocument(pDoc);
1 0
- ObjectARX学习笔记(三十五)----外部参照相关的操作
- 大数据学习笔记之三十五 NoSQL相关知识
- ObjectARX-学习笔记
- ObjectARX-学习笔记
- ObjectARX学习笔记
- ObjectArx学习笔记-画线
- ObjectArx学习笔记-acedGetXXX
- 三十五.Nandflash的操作
- java学习笔记(三十五)
- ObjectArx学习笔记-创建多段线
- ObjectARX学习笔记(三十四)----返回eLockViolation 错误的原因
- mysql学习2—外键约束的参照操作
- 安卓学习笔记(8)-外部存储的读写操作
- Oracle 外部表的相关操作
- 软件工程视频学习笔记(三十五)
- tensorflow学习笔记(三十五):control flow
- opencv学习笔记(三十五)查找轮廓
- 信息安全工程师 学习笔记(三十五)
- Latex杂谈
- android圆形的ImageView
- Android批量插入数据性能优化
- 论停车场车牌识别技术的独特性
- 类名写入plist文件,动态引入类
- ObjectARX学习笔记(三十五)----外部参照相关的操作
- eclipse如何设置成保护眼的背景色
- iOS-核心动画高级编程/12-性能调优
- oracle 第四种dml(merge)
- 配置ETags
- Associative机制使用场景
- iOS-核心动画高级编程/13-高级绘图
- Hexo博客优化
- 正则表达式和通配符概念的区别