【问题标题】:What are the best options to export Revit views to convert to PDF using the Forge Design Automation API?使用 Forge Design Automation API 导出 Revit 视图以转换为 PDF 的最佳选项是什么?
【发布时间】:2020-03-27 07:30:23
【问题描述】:

我正在测试 @Zhong Wu 在How to Revit export PDF by DesignAutomationV3 (Forge API) 中提到的几个 Revit 视图到 PDF 的转换

问题在于结果与原始结果大不相同,尤其是在影线和 3D 视图方面。

我正在使用默认的 DWG 导出选项,所以...有哪些推荐选项可以使生成的 PDF 看起来更像原始 Revit 视图?

在这些屏幕截图中,您可以明白我的意思: 和

【问题讨论】:

  • 您能否提供一些示例/屏幕截​​图来说明输出如何“不同”,以及您期望的输出是什么?
  • 当然可以。我已经编辑了问题以添加一些屏幕截图。
  • @zhong-wu 可能会在此处提供更多详细信息,但这里还有一个问题:您是否在将 DWG 输出转换为 PDF 之前检查了它的外观?我猜这可能是 PlotToPDF 作业的问题。
  • 是的。导出的 DWG 具有与 PDF 完全相同的布局。

标签: pdf autodesk-forge revit-api dwg autodesk-designautomation


【解决方案1】:

默认的PlotToPDF Activity 使用EXPORT 内置的 AutoCAD 命令,这与包含您期望的 PC3 设置的PLOT 不同(基于图像)。

您可能需要使用所需的确切 PLOT 设置创建自定义 Activity,因为您的 AppBundle 或 Workitem 可以包含自定义 PC3。

这是您可以使用的起始脚本(根据需要调整大小和设置):

-PLOT
;Detailed plot configuration? [Yes/No] <No>: 
Yes
;Enter a layout name or [?] <Model>:
Model
;Enter an output device name or [?] <None>:
DWG To PDF.pc3
;Enter paper size or [?] <ANSI A (11.00 x 8.50 Inches)>:
ANSI A (11.00 x 8.50 Inches)
;Enter paper units [Inches/Millimeters] <Inches>:
Inches
;Enter drawing orientation [Portrait/Landscape] <Portrait>: 
Landscape
;Plot upside down? [Yes/No] <No>:
No
;Enter plot area [Display/Extents/Limits/View/Window] <Display>: 
Extents
;Enter plot scale (Plotted Inches=Drawing Units) or [Fit] <Fit>:
Fit
;Enter plot offset (x,y) or [Center] <0.00,0.00>:

;Plot with plot styles? [Yes/No] <Yes>:
Yes
;Enter plot style table name or [?] (enter . for none) <>:
.
;Plot with lineweights? [Yes/No] <Yes>:
Yes
;Enter shade plot setting [As displayed/legacy Wireframe/legacy Hidden/Visualstyles/Rendered] <As displayed>:

;Enter file name <C:\Work\solids-Model.pdf>:
!name
;Save changes to page setup? Or set shade plot quality? [Yes/No/Quality] <N>:
No
;Proceed with plot [Yes/No] <Y>:
Yes

【讨论】:

  • 谢谢,我会尝试自定义活动。我还应该使用与 .dwg 一起创建的 .pcp 文件吗?
  • 您应该使用在本地运行它所需的所有文件,并且您可以使用accoreconsole.exe(AutoCAD 控制台)进行测试
猜你喜欢
  • 2019-12-25
  • 2019-08-07
  • 2019-12-26
  • 2021-09-18
  • 2020-08-06
  • 2019-10-17
  • 2020-04-04
  • 2021-09-17
  • 2017-04-13
相关资源
最近更新 更多