Hi All,
Sorry for the repost, but I think this is the better place to ask for this.
I'm starting to write code to access Revit Structure 2012 through the VB environment in Rhino/Grasshopper. When I'm trying to reference the assemblies, I can succesfully load the RevitAPI.dll, but I can't load the RevitAPIUI.dll.
The error is: 'Import failed for 'C:\Program Files\Autodesk\Revit Structure 2012\Program\RevitAPIUI.dll': Could not load file or assembly 'RevitAPIUI.dll' or one of its dependencies. The specified module could not be found.'
It seems to look for adui18res.dll.
Any ideas what this could be? Or where to look for any errors?
Any help would be greatly appreciated!
Thank you very much!
Jeroen
Solved! Go to Solution.
Hi All,
Sorry for the repost, but I think this is the better place to ask for this.
I'm starting to write code to access Revit Structure 2012 through the VB environment in Rhino/Grasshopper. When I'm trying to reference the assemblies, I can succesfully load the RevitAPI.dll, but I can't load the RevitAPIUI.dll.
The error is: 'Import failed for 'C:\Program Files\Autodesk\Revit Structure 2012\Program\RevitAPIUI.dll': Could not load file or assembly 'RevitAPIUI.dll' or one of its dependencies. The specified module could not be found.'
It seems to look for adui18res.dll.
Any ideas what this could be? Or where to look for any errors?
Any help would be greatly appreciated!
Thank you very much!
Jeroen
Solved! Go to Solution.
Solved by jeremytammik. Go to Solution.
...and also few other when googling "adui18res.dll"
...and also few other when googling "adui18res.dll"
HI Jeroen
Did the links suggested by ollikat help resolve the issue? If not, do let us know.
thanks
Saikat
HI Jeroen
Did the links suggested by ollikat help resolve the issue? If not, do let us know.
thanks
Saikat
Dear Jeroen,
You can never load RevitAPIUI.dll yourself. Only Revit can do that. The same applies to RevitAPI.dll, actually. The Revit API only works within Revit itself.
Cheers
Dear Jeroen,
You can never load RevitAPIUI.dll yourself. Only Revit can do that. The same applies to RevitAPI.dll, actually. The Revit API only works within Revit itself.
Cheers
Hi All,
Thank you for the prompt replies. Unfortunately I wasn't able to succeed with the API outside of Revit, for the obvious reason that it's not possible.
I started writing addins for Revit directly and will use an intermediate file to transfer the information.
Thanks for your help! It's greatly appreciated!
Jeroen
Hi All,
Thank you for the prompt replies. Unfortunately I wasn't able to succeed with the API outside of Revit, for the obvious reason that it's not possible.
I started writing addins for Revit directly and will use an intermediate file to transfer the information.
Thanks for your help! It's greatly appreciated!
Jeroen
Perfect! Good luck and have fun!
Perfect! Good luck and have fun!
I've upgraded my Revit 2020 add in to Revit 2021 by referencing the new DLL's. The addin used to load into revit 2021 without any issues. Now I get an error stating:
I've searched the forum but haven't found a solution yet. Any thoughts?
Thanks
I've upgraded my Revit 2020 add in to Revit 2021 by referencing the new DLL's. The addin used to load into revit 2021 without any issues. Now I get an error stating:
I've searched the forum but haven't found a solution yet. Any thoughts?
Thanks
Maybe you inadvertently specified that your add-in is strongly named, and that is causing it to refuse to load non-strongly-named references. RevitAPIUI is not strongly named, so your add-in referencing it cannot be so either.
Maybe you inadvertently specified that your add-in is strongly named, and that is causing it to refuse to load non-strongly-named references. RevitAPIUI is not strongly named, so your add-in referencing it cannot be so either.
Can't find what you're looking for? Ask the community or share your knowledge.