Document.Import
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 .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.
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.
Overloads (9):
Import(String,GBXMLImportOptions)
public bool Import(
string file,
GBXMLImportOptions options
)
-
StringfileFull path of the file to import. File must exist.
-
optionsVarious options applicable to GBXml import. If nulla null reference (Nothing in Visual Basic), all options will be set to their respective default values.
Return Value
bool
True if successful, otherwise False.
-
Thrown when file argument isnullNothingnullptra null reference (Nothingin Visual Basic)or empty.
-
Thrown when the file specified does not exist.
-
Thrown when no file is specified or if the file is not a valid gbXML file or does not contain any result elements.