General InformationThis opening ID is invoked during the Manipulate Symbols command. This opening ID is used to customize:
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 sample illustrates how to define the object that can be duplicated or instantiated. let This2DObject (LogicalOccurrence)
let ListPLMOccurrences(LIST)
set ListPLMOccurrences = Parameters.GetAttributeObject ("List_PLM_Occurrences")
let OutputInsDupOptionsList(List)
let OutputContextChangeOptionsList(List)
Let ReferenceObject(RFLVPMLogicalReference)
Let InstanceObject(RFLVPMLogicalInstance)
let OccurrenceObject (LogicalOccurrence)
let sDiscipline (String)
Let j = 1
for j while j<=ListPLMOccurrences->Size()
{
set OccurrenceObject = ListPLMOccurrences->GetItem(j)
set ReferenceObject = OccurrenceObject.Reference
sDiscipline = ReferenceObject.V_discipline
if(sDiscipline == "EnsLogicalEquipment")
{
set InstanceObject = OccurrenceObject.Instance
let sdescription (String)
set sdescription = InstanceObject.V_description
if(sdescription == "tank")
OutputInsDupOptionsList.Append(3)
else
OutputInsDupOptionsList.Append(1)
OutputContextChangeOptionsList.Append(0)
}
else
{
OutputInsDupOptionsList.Append(1)
OutputContextChangeOptionsList.Append(1)
}
j = j+1
}
/* output parameters write */
Parameters.SetAttributeObject("List_Instantiate_Duplicate_Options", OutputInsDupOptionsList)
Parameters.SetAttributeObject("List_Context_Change_Options", OutputContextChangeOptionsList)
| |||||||||||||||||||||||||||||||||