是否可以强迫发明家设计自动化在输出到PDF之前更新图纸中的所有视图?
我遇到了我们正在开发的Forge配置器的问题,在该问题中,PDF输出不反映配置的模型。
它遵循的一般过程是它打开了程序集,并设置了各种子组件的细节级别以匹配用户配置的选项。然后,它保存了组件并打开引用它的图纸。它从那里生成了PDF输出。 问题在于,视图没有显示模型组件上设置的细节级别。因此,我想知道在输出PDF之前是否有一种方法可以强制更新?
我发现了一项工作,可适用于小型型号(例如57个组件,总尺寸26MB),该作品将抑制,然后在每个工作表上的每个图纸视图,以及calleptsepth.update()上取消支持。但是不幸的是,这对大型型号(例如514个组件,总尺寸287MB)不起作用,该系统旨在使用。但是,在本地运行时,这确实可以正常工作,只是无法在Forge上使用,似乎它似乎没有时间在创建PDF之前再次显示绘图视图,因为它们都是空白的。
在Inventor 2020、2021和2022中尝试了相同的结果。
在此先感谢您提供的任何帮助。
I've run into an issue with a Forge configurator that we are developing, whereby the pdf output does not reflect the configured model.
The general process that it follows is it opens the assembly, and sets the level of detail of various sub-assemblies to match user configured options. It then saves the assembly and opens a drawing that references it. From there it generates a pdf output.
The problem is that the views do not show the levels of detail that have been set on the model components. So I'm wondering if there is a way to force an update before outputting the pdf?
I have found a work around which works for small models (e.g. 57 components, total size 26MB) which is to suppress and then un-suppress every drawing view on every sheet, plus calling sheet.Update(). But unfortunately this does not work for the large models (e.g. 514 components, total size 287MB) that this system is designed to work with. This does however work when run locally, just doesn't work on Forge, where it appears as if it hasn't had time to show the drawing views again before creating the pdf, as they are all blank.
Tried in Inventor 2020, 2021, and 2022 with the same results.
Thanks in advance for any help that you can give.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

根据您的数据集,我们发现您的文件名使用变音符号,而zip文件不使用UTF-8编码。当Forge Server Un-zip IT时,这会在您的文件名中产生不良字符。因此,当绘图/汇编带有此类文件名时,Inventor Server表示“ 未解决的文件”状态。 Forge Design Automation文档中描述了如何解决此问题noreferrer“>'故障排除'页面,并在zip文件中查看'非英语文件名'段落。
Based on your dataset we found out that your filenames use diacritics and your ZIP file doesn't use UTF-8 encoding. This produces bad characters in your filenames when Forge server un-zip it. Therefore Inventor Server indicates ‘Unresolved Files’ status when a drawing/assembly is loaded with such filenames. How to solve this problem is described in the Forge Design Automation documentation, navigate to 'Troubleshooting' page and look into 'Non-English filenames in ZIP files' paragraph.