...
Code Block | ||||
---|---|---|---|---|
| ||||
FUNCTION xpxReadStepFileExEx(repositoryName, |
...
modelName : STRING;
headerModelRepositoryName, headerModelName : STRING;
STEPfile, logFile, schemaName : STRING;
shortNamesFile : STRING;
options : INTEGER;
inOptPar1, inOptPar2, inOptPar3 : GENERIC;
VAR modelId , VAR containerId : GENERIC;
VAR warnings, VAR errors, VAR sdaiError : INTEGER;
VAR outOptPar1, VAR outOptPar2, VAR outOptPar3 : GENERIC)
status : INTEGER;
|
The xpxReadStepFileExEx function is used to create a new model and populate the model with data from the specified STEP Physical File. The arguments in the xpxReadStepFileExEx have the following meaning
:
...
Argument::
...
Arguments
...
1 | Type | Name | Comment |
2 | STRING | repositoryName | Name of the repository where the new created model will be located |
3 | STRING | modelName | The name of the sdai_model that will be created and populated as a result of the xpxReadStepFileEx function |
4 | STRING | headerModelRepositoryName | A STEP Physical File consist of a Header Section and a Data Section. If a sdai_model of the Header Section should be created and populated during the xpxReadStepFileEx operation, then the headerModelName specifies the name of this sdai_model in the database. This model will be located in the repository specified by the repositoryName argument. This argument can be set to an empty string or indeterminate when no creation and population of a STEP Physical File Header Section model is wanted |
5 | STRING | headerModelName | Specifies the name of the STEP Header model to be created and populated. The model must have a name that is unique within the repository that holds the model. The model name must start with a letter and the rest of the model name can be any mix of alphanumeric characters and the underscore character. Model names are case sensitive. |
6 | STRING | STEPfile | The name of the actual STEP Physical File to read into the database |
7 | STRING | logFile | The name of the file where logging from the xpxReadStepFileEx function will be recorded in case logging is enabled. This argument can be set to an empty string or indeterminate when no logging should be performed |
8 | STRING | schemaName | The name of the Express schema that defines the structure of the data in the Data Section of the actual STEP file is found in the attribute FILE_SCHEMA.SCEMA_IDENTIFIERS in the Header Section of the STEP file. This schema will be used as the underlying schema of the new data model resulting from this command, hence this Express schema must exist as a dictionary model in the EDMdatabase EDMdatabase when the xpxReadStepFileEx function is invoked. |
9 | STRING | shortNamesFile | The name of a file that contains short entity names of the actual schema that defines the data on the STEP file to be read. A STEP file can be written using the entity names specified in the Express schema that defines the sdai model that is mapped to the STEP file, or a STEP file can be written using short entity names. In case the actual STEP file is written using the short entity names, the shortNamesFile argument must specify a file that contains the mapping from short entity names to the entity names defined in the underlying Express schema of the actual sdai model. |
options | The options are equivalent to the options used in the EDMinterface function edmiReadStepFile except for the XPX prefix. | ||
modelId |
| ||
10 | INTEGER | options | see below |
11 | GENERIC | inOptPar1 | |
12 | GENERIC | inOptPar2 | |
13 | GENERIC | inOptPar3 | |
14 | GENERIC | modelId |
|
15 | GENERIC | containerId | |
16 | INTEGER | warnings | Number of warnings detected during reading the specified step file. |
17 | INTEGER | errors | Number of errors detected during reading the specified step file. |
18 | INTEGER | sdaiError | If the xpxReadStepFileEx operation is terminated due to errors in accessing the database, the argument sdaiError will receive the actual sdaiErrorCode causing the termination of the xpxReadStepFileEx operation. |
19 | GENERIC | outOptPar1 |
|
20 | GENERIC | outOptPar2 |
|
21 | GENERIC | outOptPar3 |
|
Options:
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
1 | Option | Comment |
2 | ADD_TO_EXISTING_MODEL | The imported data set (STEP file) will be added to the existing data model <modelName>. The <modelName> data model must be a model with the required underlying schema ,i.e., the schema specified in the header section of the STEP file or the schema specified in the <schemaName> argument. |
3 | CONFORMANCE_CLASS_1 | Overrules the mapping method given in the Header Section of the actual STEP file such that the STEP file will be interpret according to ISO 10303-21:1994/TC1 CC1. |
4 | CONFORMANCE_CLASS_2 | Overrules the mapping method given in the Header Section of the actual STEP file such that the STEP file will be interpret according to ISO 10303-21:1994/TC1 CC2. |
5 | DIS_VERSION | Overrules the mapping method given in the Header Section of the actual STEP file such that the STEP file will be interpret according to ISO 10303-21:1994/TC1 DIS version. |
6 | DELETING_EXISTING_MODEL | When the specified <modelName> exists, it well be deleted and recreated at the invocation of the edmiReadStepFile xpxReadStepFile operation. |
7 | DELETE_INSTANCE_REFS_ON_DELETE | The sdaiDeleteInstance operation will be legal for instances with references. The references to the actual instances will automatically be deleted when the actual instance is deleted by the sdaiDeleteInstance operation. |
8 | DELETE_INSTANCES_WITH_REFS |
|
9 | EXCLUDE_USER_DEFINED_ENTITIES | All instances of UserDefinedEntities in the actual "stepFile" will be skipped, i.e., these instances will not be populated in the |
10 | HEADER_MODEL_ONLY |
|
11 | ISO_8859_1_STRING_ENCODING | The STRING data types in the resulting new EDMdataModel will be encoded in ISO-LATIN-1 style string encoding. Only Only one of the options UTF_8_STRING_ENCODING and ISO_LATIN_1_STRING_ENCODING are legal in the same STEPread operation. The The ISO-LATIN-1 style string encoding is the default string encoding style in the resulting EDMdataModel, i.e., when neitherUTF neither UTF_8_STRING_ENCODING nor ISO_LATIN_1_STRING_ENCODING is specified. This This option has no effect when the option ADD_TO_EXISTING_MODEL is used. |
12 | INSTANCES_IN_CONTAINER | All instances created by the actual STEPread operation will be inserted in an EDMcontainer that will be created by the STEPread operation. The actual EDMcontainerId is returned in the "containerId" argument in the actual readStep operation invocation. |
13 | INSTANCES_IN_MODEL_LOCK_CONTAINER | All instances created by the actual STEPread operation will be inserted in an EDMmodelLockContainer that will be created by the STEPread operation. The actual EDMmodelLockContainerId is returned in the "containerId" argument in the actual readStep operation invocation. |
14 | INSTANCES_IN_MODEL_CONTAINER | All instances created by the actual STEPread operation will be inserted in an EDMmodelContainer that will be created by the STEPread operation. The actual EDMmodelContainerId is returned in the "containerId" argument in the actual readStep operation invocation. Only Only one of the options INSTANCES_IN_MODEL_LOCK_CONTAINER, INSTANCES_IN_MODEL_CONTAINER, INSTANCES_IN_LOCK_CONTAINER, INSTANCES_IN_CONTAINER are legal to be able in the same stepRead operation. |
15 | INSTANCES_IN_LOCK_CONTAINER | All instances created by the actual STEPread operation will be inserted in an EDMlockContainer that will be created by the STEPread operation. The actual EDMlockContainerId is returned in the "containerId" argument in the actual STEPread operation invocation. Only Only one of the options INSTANCES_IN_MODEL_LOCK_CONTAINER, INSTANCES_IN_MODEL_CONTAINER, INSTANCES_IN_LOCK_CONTAINER, INSTANCES_IN_CONTAINER are legal to be able in the same stepRead operation. |
16 | LOG_ERRORS_AND_WARNINGS_ONLY | Limits the log to only include logging of instances related to errors and warnings. |
17 | LOG_TO_FILE | Logged information will be stored in a file specified by the <Log file> argument. |
18 | LOG_TO_STDOUT | Logged information will be written to the _ EDMinterface _ current output device. The _EDMinterface_ current output device can be defined by the edmiDefineOutputFunction operation. |
19 | KEEP_STEP_IDENTIFIERS | A STEP Identifier model will be created and connected to the data model created by this operation. The STEP Identifier model will keep the correspondence between the STEP file entity instances (stepID) and the _ EDMdatabase _ instanceID that uniquely identifies the same instance. |
20 | NO_STRING_ENCODING | Specifies that the actual STEP file has no encoding of SdaiString data values, hence no decoding will take place during the read operation. |
21 | NOT_CLOSE_MODEL | The data model will not be closed by the edmiReadStepFile xpxReadStepFile operation, i.e., the calling application can start using the imported model immediately without opening the model. |
22 | NO_INSTANCE_REFERENCES | No "instance references tables" will be created and maintained in the actual model. The following operations will not work on the actual data model when this option is enabled:
|
23 | ONE_FILE_STEP_FILE_PACKAGE | The actual "stepFile" to read is an EDMstepFilePackage consisting of one single file.An EDMstepFilePackage is an EDM proprietary extention extension of the iSO 10303-21 to enable the mapping of the EDM proprietary data types EDMfile and EDMblob to an P21 file. An An EDMstepFilePackage can consist of one single file or a collection of files. |
24 | ONLY_USER_DEFINED_ENTITIES | Only instances of UserDefinedEntities in the actual "stepFile" will be populated in the actual EDMdataModel by the STEPread operation. |
25 | OPEN_MODEL_FOR_LOCAL_READ_WRITE | This option opens the actual resulting EDMdataModel for LocalReadWrite mode, i.e., this model will not be updated on the EDMdatabase controlled by the actual running EDMserver. The purpose of this option is to implement a method for "local temporary models" in an EDMserver system. This options has only effect in an EDMserver system. |
26 | PARSE_ONLY | The specified STEP file will be parsed only, i.e. only checked for syntactical correctness, no data will be stored in the EDMdatabase. |
27 | PRE_PARSE_FILE | Specifies that the actual import process will be performed in two passes, i.e., the actual STEP file will be read twice. |
28 | STEP_FILE_PACKAGE | The "stepFile" to read in the actual STEPread operation is an EDMstepFilePackage. |
29 | UNPACKED_MODEL |
|
30 | USER_CONTROLLED_INVERSE |
|
31 | UTF8_ENCODED_FILE_NAMES |
|
32 | UTF_8_STRING_ENCODING | The STRING data types in the resulting new EDMdataModel will be encoded in UTF-8 style string encoding. Only Only one of the options UTF_8_STRING_ENCODING and ISO_LATIN_1_STRING_ENCODING are legal in the same STEPread operation. This This option has no effect when the option ADD_TO_EXISTING_MODEL is used. |
33 | ZIPPED_FILE | The actual "stepFile" is a "zipped" file. |
...
Example
...
Code Block | ||
---|---|---|
| ||
<Missing Example> |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|