Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.NullReferenceException #3

Open
Floryndas opened this issue Jan 7, 2019 · 0 comments
Open

System.NullReferenceException #3

Floryndas opened this issue Jan 7, 2019 · 0 comments

Comments

@Floryndas
Copy link

Floryndas commented Jan 7, 2019

Dear,
While trying to build your project Visual Studio 2017, I always face the error System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=NIRAS.Revit.TTL_Exporter Arborescence des appels de procédure : at NIRAS.Revit.TTL_Exporter.Export_TTL_File_Main.Execute(ExternalCommandData commandData, String& message, ElementSet elements) in C:\Users\Justine\source\repos\revit-bot-exporter-master\revit-bot-exporter-master\NIRAS.Revit.TTL_Exporter\NIRAS.Revit.TTL_Exporter.Main.cs:line 59 at apiManagedExecuteCommand(AString* assemblyName, AString* className, AString* vendorDescription, MFCApp* pMFCApp, DBView* pDBView, AString* message, Set<ElementId\,std::less<ElementId>\,tnallc<ElementId> >* ids, Map<AString\,AString\,std::less<AString>\,tnallc<std::pair<AString const \,AString> > >* data, AString* exceptionName, AString* exceptionMessage) at line 59 which is the following:
String Host = (new FilteredElementCollector(doc) .OfCategory(BuiltInCategory.OST_ProjectInformation) .FirstElement() as ProjectInfo).LookupParameter("Host").AsString();

Also, could you give me an example of HOST variable value, please? What does HOST means for a particular BIM project?
Thanks in advance for your return.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant