Source Representation Filter (DerivedRepresentation_SourceRepresentationFilter)

An opening ID is an entry point used to customize business logic. Source Representation Filter allows you to filter a source representation by specifying if a representation can be selected or cannot be selected for further import to the derived representation.

Note: For more information about customization by business rules, see Installation and Setup: Customize: Behavior: Data Setup: Customization by Business Rules.

This page discusses:

General Information

This 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.

PLM Opening ID: DerivedRepresentation_SourceRepresentationFilter
Customization intent: Computation
Execution context:Client

Input Objects

Input objects must be of the following types:

  • ThisObject corresponds to the V_description of the representation.
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter NameTypeRead/WriteComments
CopyTaggedRepresentation Integer Read/WriteSpecifies whether to copy or ignore tagged representations.
IsTaggedIntegerRead/WriteSpecifies 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)
}