Import gbxml from REVIT Api

210 Views Asked by At

I want to create my plugin in revit, where there is the option to import the gbxml file. Within the REVIT API there is an import method, where it takes as arguments the path of the file and the options. My question is how is the format of those options? since within the same documentation I only see that it is a class, but I do not see anything else.

2

There are 2 best solutions below

0
On

This method is available only in MEP. Though the 'options' argument is not currently used, an object still must be provided (may be a null reference (Nothing in Visual Basic)). The method will return False if not succeed. e.g when the input xml file does not contain any result elements.

You can check it here too

0
On

gbXML import into Revit is a bit tricky. A number of limitations and possibilities are explained in the Revit MEP discussion forum thread on importing back gbXML results.