General InformationThis opening ID is invoked whenever a new representation is added (during creation or edition of a derived representation). This opening ID is used to customize selection modes (As displayed and Manual selection) to filter the selection by removing representations that have been set as non selectable. The table below provides you with information related to the definition of the Opening ID.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe following samples illustrates:
/*
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)
}
| |||||||||||||||||||||||||