Closed chuongmep closed 3 years ago
What version is your Revit and Dynamo?
What version is your Revit and Dynamo?
Im working in Revit 2022 with version: Dynamo Core : 2.10.1.3976 Dynamo Revit: 2.10.1.4002
The problem is here.
AssemblyResolve
here is processed before Dynamo, but Dynamo will appear many special args, such as "FunctionObject.ds", or args.Name
is a full file path (not a general AssemblyName
setting).
I'm considering whether it would be better to manually load the assembly dependencies at OnStartup
, or to write a more generic AssemblyResolve
method.
Do you have any good ideas?
I found that whether it's Dynamo, pyRevit, or the Rhino plugin, the assembly dependencies are all loaded manually.
So I modified it this way too. https://github.com/Zhuangkh/RevitDevTool/commit/461620d05c66314dc370eb0e10752c49be08ee70
The problem is here.
AssemblyResolve
here is processed before Dynamo, but Dynamo will appear many special args, such as "FunctionObject.ds", orargs.Name
is a full file path (not a generalAssemblyName
setting).I'm considering whether it would be better to manually load the assembly dependencies at
OnStartup
, or to write a more genericAssemblyResolve
method.Do you have any good ideas? Whether we can change to check with a class same with pyrevit, I have used pyrevit in combination, it works very well with Dynamo inside. https://github.com/eirannejad/pyRevit/blob/b074f295861b617054c2ad1f6071bba50c885181/dev/pyRevitLoader/Source/PyRevitRunnerApplication.cs#L24
Yes, I have changed to manually loading dependencies.
Look good, it working.
I see a error with dynamo revit, can't open dynamo when add your tool.