public static ErrorStatus RegisterApp(Transaction trans, Database pDb, string pAppName)
{
RegAppTable appTbl = trans.GetObject(pDb.RegAppTableId, OpenMode.ForWrite) as RegAppTable;
if (!appTbl.Has(pAppName))
{
Autodesk.AutoCAD.DatabaseServices.RegAppTableRecord appTblRcd = new Autodesk.AutoCAD.DatabaseServices.RegAppTableRecord();
appTblRcd.Name = pAppName;
appTbl.Add(appTblRcd);
trans.AddNewlyCreatedDBObject(appTblRcd, true);
}
return ErrorStatus.OK;
}
CAD好帮手
-
近期文章
分类目录
简洁版
链接表
功能
分享统计