Closed erfajo closed 5 years ago
Hi @erfajo how is your package structured? Can you share an image of the package root directory? Are the custom nodes in a .dyf folder?
Do you have this issue with DynamoRevit?
Your package has both ZT and custom nodes?
It might be worth mentioning that dynamoRevit and dynamoSandbox have different package paths. A first guess is that sandbox is pointed to your dll, but does not actually have your package installed.
Can you check the manage package paths / and manage packages menu items in sandbox so see if
@erfajo I would like to try reproducing your issue in sandbox. Can you please give me the most direct steps possible to install your package that should reproduce the issue on sandbox?
Hi @erfajo I can reproduce this and I think I know whats going on - I fear you will not like the reason 😄 .
It appears your package has a dependency on the revit API. When Dynamo attempts to load your dlls it cannot as it fails to find the required dependencies, this throws an exception, at this point the first dll is loaded, the revit one fails to load, but the custom nodes never load as a result of the exception.
I found this in the dynamo console:
Exception when attempting to load package Orchid from C:\Users\kirschm\AppData\Roaming\Dynamo\Dynamo Core\2.1\packages\Orchid_200
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
When I find the full exception it states:
System.IO.FileNotFoundException: 'Could not load file or assembly 'RevitAPI, Version=18.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.'
Which makes sense.
I think there are two solutions:
Is there any notifications? I mean, can you check if there is one by clicking the green "!" on the top?