适用于Inventor AppBundle互操作的Autodesk Forge设计自动化

时间:2020-07-29 18:59:23

标签: autodesk-forge

我创建了一些与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程序集的实现。不确定是否会引起问题。

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

要解决此问题,我相信您可以将Inventor加载项项目中的Interop Dll的“嵌入Interop类型”设置为“ True”(如果尚未设置)。 另一种选择是将“ Autodesk.Inventor.interop.dll”与您的加载项Dll一起放入包中。

希望这会有所帮助。让我知道是否可以。