Imports a Green-Building XML file into the document.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
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 nullptr, all options will be set to their respective default values.
Return Value
BooleanTrue if successful, otherwise False.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when file argument is nullptr or empty. |
FileNotFoundException | Thrown when the file specified does not exist. |
ArgumentException | Thrown when no file is specified or if the file is not a valid gbXML file or does not contain any result elements. |