edmiWriteModelInXmlFormatBN
EdmiError edmiWriteModelInXmlFormatBN(SdaiString modelRepName, SdaiString modelName, SdaiString headerModelRepName, SdaiString headerModelName, SdaiString excludeIncludeFilter, SdaiString xmlFile, SdaiInteger realPrecision, SdaiInteger options);
Produces an XML representation of a data model in the EDMdatabase. The produced XML representation is a well formed XML without a DTD.
Arguments
Type | Name | Comment |
SdaiString | modelRepName | Specifies the name of the data repository that holds the data model to make a XML representation of. Repository names are case sensitive. |
SdaiString | modelName | Specifies the name of the data model to be mapped to the specified XML File. Model names are case sensitive. |
SdaiString | headerModelRepName | Specifies the name of the data repository that hosts the STEP header model to be mapped to the XML file. Repository names are case sensitive. When this <headerModelRepName> = NULL the default value <headerModelRepName> = <modelRepName> will be used. |
SdaiString | headerModelName | Specifies the name of the STEP header model to be mapped to the XML file. When the <headerModelRepName> = NULL, no STEP header model will be mapped to the XML file. |
SdaiString | excludeIncludeFilter | Dummy, i.e., not yet in use. |
SdaiString | xmlFile | Specifies the name of the file that will hold the resulting XML file. Default file extension is ".xml". |
SdaiInteger | realPrecision | Specifies an integer that denotes the number of significant digits after the decimal point in a REAL number in the resulting XML file. When <realPrecision> is set to zero, a system dependent default value is used. |
SdaiInteger | options | Specifies the options that are enabled in the invocation of the edmWriteModelInXmlFormatBN function. The <options> value should be specified as a bitwise OR between the options to enable. All options name are defined in the header file sdai.h . |
Return Value
Options
Option | Comment |
---|---|
EDM_IDENTIFIERS | Specifies that the EDMdatabase instanceID will be used as instance identifiers in the XML File such that it will be easy to find the correspondence between a mapped instance on the XML file and the same instance in the EDMdatabase. |
COMPRESSED_FILE |
|
INVERSE_ATTRIBUTES | Specifies that the value of Inverse attributes will be mapped to the XML file. |
DERIVE_ATTRIBUTES | Specifies that the value of Derive attributes will be mapped to the XML file. |
Example
EdmiError rstat; . . . if (rstat = edmiWriteModelInXmlFormatBN ( "DataRepository", "Building_AXCV9870AB", NULL, NULL, NULL, "/usr/hkd/IFC/data/Building_AXCV9870AB.xml", 0, EDM_IDENTIFIERS | DERIVE_ATTRIBUTES)) { /* Error in operation */ printf("\nError: %s in edmiWriteModelInXmlFormatBN\n", edmiGetErrorText(rstat)); goto error; } . . .
See also
Filter by label
There are no items with the selected labels at this time.