Thank you for the quick response Jeremy, ah yes I always wanted to be a
secret agent, but it never worked out. So I resorted to architecture
instead (hence the 007). Maybe someday Ill design a top secret lab on top
of a mountain in Switzerland or something.
Anyhow, I actually used your latest github releases on
https://github.com/jeremytammik/CustomExporterCollada/releases , both the
one with the exception handler (2017.0.0.1) and the 2018.0.0.0 releases,
and both of them for some reason do not work neither on Revit 2018 nor 2019
(it does nothing after I click the custom addin on a 3D view). Might be
that there is something basic that I am missing?
When I run the debug, the log shows the following message: 'Object
reference not set to an instance of an object' (the image below - I added
the line 52 MessageBox.Show line for testing):
[image: VisualStudio_Debug error.png]
After this I commented out the exception handler and rebuilt the code, and
then received the following Revit error: "Revit could not complete the
external command. Contact the provider for assistance. Information they
provided to Revit about their identity: The Building Coder (image below).
[image: Revit_error.png]
(Visual studio image of commented code):
[image: VisualStudio_withoutException.png]
Just to ensure that I did not miss something obvious, here is the steps
that I took to recreate the scenario.
1: Downloaded the 2018 zip release file, unzipped and opened the .sln file
in Visual Studio 2017.
2. Reimported the RevitAPI.dll and RevitAPIUI.dll file from the Revit
folder, as they were not found when opening the .sln file initially
3. Changed the target framework to .NET Framework 4.7.1 (latest that I have
downloaded on this machine)
4. Built the project, added the CustomExporterCollada.dll as well as the
CustomExporterCollada.addin to the add-in folder of Revit 2019
5. Launched Debug for Revit 2019 in Visual studio, opened a demo project
and launched the addin from the external tools icon with a breakpoint on
the exporter.Export line of Command.cs in Visual Studio
6. Stepped through the code from here until the exception message is called.
I hope there is something basic that Im missing? Anyway, thank you for your
time thus far, I appreciate every bit of your work and help, makes it
really accessible for a newcomer to get started with developing plugins!
Thank you.