Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
CopyTaggedRepresentation | Integer |
Read/Write | Specifies whether to copy or ignore tagged representations. |
IsTagged | Integer | Read/Write | Specifies whether ThisObject is tagged or not tagged. |
Sample
The following samples illustrates:
- How to specify whether a representation needs to be imported or not
/*
How to specify whether a Representation needs to be imported or not?
*/
/*
1. Tag the representation.
Tagging refers to adding the word "DerivedRep_TaggedRep" to the V_description PLM attribute of the Representation.
2. Set the context attribute "CopyTaggedRepresentation" to the desired value.
Legal values are,
0 -> Representations with "DerivedRep_TaggedRep" are not imported.
1 -> Only representations with "DerivedRep_TaggedRep" are imported.
Any other value -> Default behaviour. All the representations will be imported.
Adding "DerivedRep_TaggedRep" to the description of a representation has no impact on result.
3. Set the value of the context attribute "IsTagged" by checking whether the tag word DerivedRep_TaggedRep
is present in the V_description PLM attribute of the Representation.
Legal values are,
0 -> The representation is not tagged.
1 -> The representation is not tagged.
Any other value -> Default behaviour. Representation will be considered as not tagged.
*/
Let ObjectDescription(String)
Parameters.SetAttributeInteger("CopyTaggedRepresentation", 10)
ObjectDescription = ThisObject.V_description
if ( ObjectDescription == "DerivedRep_TaggedRep" )
{
Parameters.SetAttributeInteger("IsTagged", 1)
}
else
{
Parameters.SetAttributeInteger("IsTagged", 0)
}