I created my own ribbon in Revit 2019. I want to export model data into gbxml file by clicking "Export GBXML" pushbutton that I created.
After that, I defined the location and clicked to save the XML file.
But there was a warning appeared as picture below. Could you suggest any solution? Thank you in advance.
Solved! Go to Solution.
I created my own ribbon in Revit 2019. I want to export model data into gbxml file by clicking "Export GBXML" pushbutton that I created.
After that, I defined the location and clicked to save the XML file.
But there was a warning appeared as picture below. Could you suggest any solution? Thank you in advance.
Solved! Go to Solution.
Solved by naveen.kumar.t. Go to Solution.
Hi @thailandbimuser ,
This exception is thrown when one of the arguments provided to a method is not valid.
so the problem may be with the Export Method .
In your code Please check whether you have provided a proper file name, the proper folder name and also check whether you set GBXML ExportOption properly.
Hi @thailandbimuser ,
This exception is thrown when one of the arguments provided to a method is not valid.
so the problem may be with the Export Method .
In your code Please check whether you have provided a proper file name, the proper folder name and also check whether you set GBXML ExportOption properly.
Hi,
I think I identified the file name and folder name, as well as set GBXML ExportOption already. Could you please help consider my source code and suggest? Thank you very much.
Hi,
I think I identified the file name and folder name, as well as set GBXML ExportOption already. Could you please help consider my source code and suggest? Thank you very much.
Hi @thailandbimuser ,
I think the problem may be with the GBLEXPORTOPTIONS.
You need to set the energy model type from which gbXML will be exported.
GBXMLExportOptions option = new GBXMLExportOptions();
//Depending on your project elements set the exportenergymodeltype option.ExportEnergyModelType = ExportEnergyModelType.BuildingElement; (or) option.ExportEnergyModelType = ExportEnergyModelType.SpatialElement;
Hi @thailandbimuser ,
I think the problem may be with the GBLEXPORTOPTIONS.
You need to set the energy model type from which gbXML will be exported.
GBXMLExportOptions option = new GBXMLExportOptions();
//Depending on your project elements set the exportenergymodeltype option.ExportEnergyModelType = ExportEnergyModelType.BuildingElement; (or) option.ExportEnergyModelType = ExportEnergyModelType.SpatialElement;
Hi,
Problem is solved. Thank you very much.
Hi,
Problem is solved. Thank you very much.
Can't find what you're looking for? Ask the community or share your knowledge.