xpfConditionalDeepCopyInstancesEx
Â
FUNCTION xpfConditionalDeepCopyInstancesEx (sourceInstances : SET OF GENERIC; modelId : GENERIC; options : INTEGER; include_exclude : SET OF GENERIC; instanceContainerId : GENERIC; rolesToCopy : SET OF GENERIC; noContainerRoles : SET OF GENERIC) newInstances : LIST OF GENERIC;
This function returns an aggregate of numeric instanceIDs that will uniquely identify the created instances (target instances) in the EDMdatabase.
When copying objects (entity instances & aggregate instances) from one model to another model, the actual objects must be "copied" from the source model into the target model. Copied in this context means that new entity instances/aggregate instances have to be created in the target model and then the "primitive attribute/aggregate values" have to be assigned from the source objects to the new created objects in the target model. Hence, "normal" assignment statements cannot be used for this purpose. An assignment operation will only "copy" the InstanceId of the actual object resulting in "invalid InstanceId in target model". The "ROLES" arguments in this function should be specified without the "EXPRESS_SCHEMA_NAME." part as the schema is implicitly uniquely specified by the actual model. Examples of legal"ROLES" arguments for these functions:
'IFCROOT.GLOBALID'Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
'IFCROOT.NAME'Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
'IFCOBJECTDEFINITION.DECOMPOSES'
'IFCBUILDINGSTOREY.ELEVATION'
Â
Arguments
Type | Name | Comment |
SET OF GENERIC | sourceInstances | comments |
GENERIC | modelId | Â |
INTEGER | options | Â |
SET OF GENERIC | include_exclude | Â |
GENERIC | instanceContainerId | Â |
SET OF GENERIC | rolesToCopy | Â |
SET OF GENERIC | noContainerRoles | Â |
Return Value
Â
Type | Name | Comment |
LIST OF GENERIC | newInstances | comments |
Options
Option | Comment |
xpxSUBTYPES | comment |
xpxINCLUDE_TYPES | Â |
xpxEXCLUDE_TYPES | Â |
xpxEXCLUDE_INSTANCES | Â |
xpxCOPY_SHALLOW | Â |
xpxUSE_MAPPED_INSTANCES | Â |
xpxEXCLUDE_ALL_INSTANCES | Â |
Â
Example
<Missing Example>
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â