 | CAEXObjectCopy Method |
Creates a copy of this CAEX object, containing all child elements.
The created copy will have replaced unique IDs and updated references, if
the assignNewIDs is set to true (default).
When a CAEX class is copied, the nested classes that can exist for AttributeType,
RoleClass, SystemUnitClass, and InterfaceClass could be included in the created copy, if
the includeSubClasses is set to true.
Namespace: Aml.Engine.CAEXAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic override CAEXWrapper Copy(
bool deepCopy = true,
bool assignNewIDs = true,
bool includeSubClasses = false
)
Public Overrides Function Copy (
Optional deepCopy As Boolean = true,
Optional assignNewIDs As Boolean = true,
Optional includeSubClasses As Boolean = false
) As CAEXWrapper
public:
virtual CAEXWrapper^ Copy(
bool deepCopy = true,
bool assignNewIDs = true,
bool includeSubClasses = false
) override
Parameters
- deepCopy Boolean (Optional)
-
if set to true a deep copy is created; otherwise only the attributes are included in the
copy. The default value is true.
- assignNewIDs Boolean (Optional)
-
if set to true all elements with IDs get unique
IDs and the ID references will be updated. The default value is true.
- includeSubClasses Boolean (Optional)
-
if set to true sub classes of SystemUnitClasses, InterfacesClasses, RoleClasses and AttributeTypes
are included in the copy. The default value is false.
Return Value
CAEXWrapper
A copy of this CAEX object with unique IDs.
Remarks
Please note, that the copy is not automatically inserted into the document. The copy also gets the same
name as the original object. This name should be changed when the copy is inserted into a collection,
to full fill a possible existing restriction for name uniqueness of the target collection.
See Also