Document.Import(String, GBXMLImportOptions)
Method
Description:
Imports a Green-Building XML file into the document.
Imports a Green-Building XML file into the document.
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.
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.
Parameters
Parameter | Type | Description |
---|---|---|
file | String | Full path of the file to import. File must exist. |
options | GBXMLImportOptions | Various options applicable to GBXml import. If <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST9ABFE48D_1"></span></span>, all options will be set to their respective default values. |
Return Value
Type | Description |
---|---|
Boolean | True if successful, otherwise False. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when file argument isor 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. |