Space Cell Naming

An opening ID is an entry point used to customize business logic. Space Cell Naming manages to customize space cell names for the space references.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked while creating space cell references.

This opening ID is used to customize space cell names for the space cell references.

The table below provides you with information related to the definition of the Opening ID.

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

Input Objects

Input objects must be of the following types:

  • ThisObject: VPMReference
  • Parameters: RuleContext

Sample

The following sample explains the business rule for defining space names for the space references.

let SpaceCellName(String)
let ConstructionElements(List)
let i(Integer)
let nbElements(Integer)
let Element(Feature)

SpaceCellName = ""

set ConstructionElements = Parameters.GetAttributeObject("ConstructionElements")

i = 1
nbElements = ConstructionElements.Size()

for i while i <= nbElements
{
	set Element = ConstructionElements.GetItem(i)

	if i < nbElements
		SpaceCellName = SpaceCellName + Element.Name() + "_"
	else
		SpaceCellName = SpaceCellName + Element.Name()
}
Parameters.SetAttributeString("SpaceCellName", SpaceCellName)