| | |
| | |
|
| | | doc.UpdataDocumentCache();
|
| | | m_uiapp.Idling += App_Idling;
|
| | | RevitCommandId id = RevitCommandId.LookupPostableCommandId(PostableCommand.CheckPipeSystems);
|
| | | RevitCommandId id = RevitCommandId.LookupPostableCommandId(PostableCommand.ShowDisconnects);
|
| | | if (uiapp.CanPostCommand(id))
|
| | | {
|
| | | uiapp.PostCommand(id);
|
| | |
| | | }
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | /// <summary>
|
| | | /// 导出模型
|
| | | /// </summary>
|
| | |
| | | var doc = commandData.Application.ActiveUIDocument.Document;
|
| | | doc.UpdataDocumentCache();
|
| | | CacheUtil.SaveCache(commandData.Application.ActiveUIDocument.Document);
|
| | | TaskDialog.Show("提示", "导出完成!");
|
| | | var result = CacheUtil.ExportZipFile(commandData.Application.ActiveUIDocument.Document);
|
| | | if (result)
|
| | | TaskDialog.Show("提示", "导出完成!");
|
| | | else TaskDialog.Show("提示", "导出失败,请重试!");
|
| | | return Result.Succeeded;
|
| | | }
|
| | | }
|