【问题标题】:Autodesk Forge Design Automation for Inventor AppBundle interopAutodesk Forge Design Automation for Inventor AppBundle 互操作
【发布时间】:2020-11-19 11:00:41
【问题描述】:

我创建了一些与 Inventor 配合良好的 AppBundle,我必须包含 Autodesk.Inventor.interop.dll 才能使插件正常工作。现在我有一个插件,我在其中部署 dll,但它无法解析 dll 或其依赖项之一。

这是实际的日志内容:

InventorCoreConsole.exe Information: 0 : Opening document: T:\Aces\Jobs\d5df421ba2ab4c098cfaef8b4db76b76\inputFiles\ThisJobAssembly.iam
InventorCoreConsole.exe Information: 0 : Opened
[07/29/2020 17:25:49] InventorCoreConsole.exe Information: 0 : Getting Inventor plug-in.
[07/29/2020 17:25:49] InventorCoreConsole.exe Information: 0 : Plug-in: Sample Assembly Automation Plugin
[07/29/2020 17:25:49]     InventorCoreConsole.exe Information: 0 : Activating plug-in: Sample Assembly Automation Plugin
[07/29/2020 17:25:49]     InventorCoreConsole.exe Information: 0 : Deactivating plug-in: Sample Assembly Automation Plugin
[07/29/2020 17:25:49] Could not load file or assembly 'Autodesk.Inventor.Interop, Version=23.1.0.0, Culture=neutral, PublicKeyToken=d84147f8b4276564' or one of its dependencies.

我可以在本地调试这个插件没有问题。然后我获取了整个输出文件夹的内容并尝试了它并收到了同样的错误。我已经确认输出中的 dll 是 23.1.0.0 版本。

我看到这个应用程序和以前的应用程序之间的唯一区别是几个 iLogic 程序集的实现。不确定这是否会导致问题。

有什么想法吗?

【问题讨论】:

    标签: autodesk-forge


    【解决方案1】:

    要解决此问题,我相信您只需将 Inventor 插件项目中的 Interop Dll 的“Embed Interop Types”设置为“True”(如果还没有的话)。 另一种选择是将“Autodesk.Inventor.interop.dll”与加载项 Dll 一起放入您的捆绑包中。

    希望这会有所帮助。如果没有,请告诉我。

    【讨论】:

      猜你喜欢
      • 2021-09-17
      • 2019-04-10
      • 2019-08-07
      • 1970-01-01
      • 2020-09-12
      • 2020-05-18
      • 2021-11-04
      • 2020-04-02
      • 2020-04-25
      相关资源
      最近更新 更多