Space Naming

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

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 while creating space references.

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

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

PLM Opening ID: SpaceNaming
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 SpaceReferenceName(String)
let ConstructionElements(List)
let i(Integer)
let nbElements(Integer)
let Element(Feature)

SpaceReferenceName = ""

set ConstructionElements = Parameters.GetAttributeObject("ConstructionElements")

i = 1
nbElements = ConstructionElements.Size()

for i while i <= nbElements
{
	set Element = ConstructionElements.GetItem(i)
	
	if i < nbElements
		SpaceReferenceName = SpaceReferenceName + Element.Name() + "_"
	else
		SpaceReferenceName = SpaceReferenceName + Element.Name()
}

Parameters.SetAttributeString("SpaceReferenceName", SpaceReferenceName)