一、直接导出图纸方法:

commandData.Application.ActiveUIDocument.Document.ExportImage(new ImageExportOptions() 
{FilePath= Environment.GetFolderPath(Environment.SpecialFolder.Desktop)+"\\图纸.png", PixelSize = 5000, ShadowViewsFileType = ImageFileType.PNG, HLRandWFViewsFileType = ImageFileType.PNG });

二、调用revit自身的导出图片图纸界面:

using (Transaction trans = new Transaction(commandData.Application.ActiveUIDocument.Document, "导出图纸"))
                {
                    trans.Start();
                    RevitCommandId cmdid = RevitCommandId.LookupPostableCommandId(PostableCommand.ExportImagesandAnimationsImage);
                    commandData.Application.PostCommand(cmdid);
                    trans.Commit();
                }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-14
  • 2021-08-19
  • 2021-07-07
  • 2021-09-27
  • 2021-12-23
猜你喜欢
  • 2021-11-17
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2021-09-09
  • 2022-12-23
相关资源
相似解决方案