Imports a Green-Building XML file into the document.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public bool Import(
string file,
GBXMLImportOptions options
)
Parameters
- file String
- Full path of the file to import. File must exist.
- options GBXMLImportOptions
- Various options applicable to GBXml import. If null, all options will be set to their respective default values.
Return Value
BooleanTrue if successful, otherwise False.
Exceptions
Remarks
This method is available only in MEP.
Though the 'options' argument is not currently used, an object still must be provided (may be
null).
The method will return False if not succeed. e.g when the input xml file does not contain any result elements.
See Also
Reference