PLMParameterFunctions Functions

This page discusses:

DatabaseObjectType.GetAggregatedParameters()

Method defined by the user that can be called on any DatabaseObjectType. It returns the list of PLM Parameters aggregated under the given object. The list is empty if no aggregated parameter is located under the input object.

Signature

DatabaseObjectType.GetAggregatedParameters() : List

ReturnType

List

Example

Let listParams(List)
Let listAggregatedParams(List)
Let listUsedParams(List)
Let parameter(PlmParameter)

listParams = ThisObject->GetPLMParameters()
listAggregatedParams = ThisObject->GetAggregatedParameters()
listUsedParams = ThisObject->GetUsedParameters()

for i while i<= listParams->Size()
{
	set parameter = listParams->GetItem(i)

	/* some kind of treatment */

	i = i+1
}

DatabaseObjectType.GetPLMParameters()

Method defined by the user and that can be called on any DatabaseObjectType. It returns the list of PLM parameters aggregated or instantiated under the given object. The list is empty if no PLM parameter is located under the input object.

Signature

DatabaseObjectType.GetPLMParameters() : List

ReturnType

List

Example

Let listParams(List)
Let listAggregatedParams(List)
Let listUsedParams(List)
Let parameter(PlmParameter)

listParams = ThisObject->GetPLMParameters()
listAggregatedParams = ThisObject->GetAggregatedParameters()
listUsedParams = ThisObject->GetUsedParameters()

for i while i<= listParams->Size()
{
	set parameter = listParams->GetItem(i)

	/* some kind of treatment */

	i = i+1
}

DatabaseObjectType.GetUsedParameters()

Method defined by the user and that can be called on any DatabaseObjectType. It returns the list of PLM parameters instantiated under the given object. The list is empty if no PLM parameter is located under the input object.

Signature

DatabaseObjectType.GetUsedParameters() : List

ReturnType

List

Example

Let listParams(List)
Let listAggregatedParams(List)
Let listUsedParams(List)
Let parameter(PlmParameter)

listParams = ThisObject->GetPLMParameters()
listAggregatedParams = ThisObject->GetAggregatedParameters()
listUsedParams = ThisObject->GetUsedParameters()

for i while i<= listParams->Size()
{
	set parameter = listParams->GetItem(i)

	/* some kind of treatment */

	i = i+1
}

PlmParameter.ValuateRanges()

Function used to set the upper and/or lower bounds of the parameter before its creation. This function can only be used during the creation of the PLM parameter in the 3DEXPERIENCE. It is called on the PlmParameter object.

Signature

PlmParameter.ValuateRanges(PlmParamMin : String, PlmParamMax : String, PlmParamMinIncluded : Integer [, PlmParamMaxIncluded : Integer])

Arguments

NameInput/OutputRequired?TypeComment
PlmParamMinInYesStringString containing the minimal value in Display Unit.
PlmParamMaxInYesStringString containing the maximal value in Display Unit.
PlmParamMinIncludedInYesIntegerInteger corresponding to the status of the minimum bound:
  • 0: no bound.
  • 1: bound included.
  • 2: bound excluded.
  • 3 or 4: not used.
PlmParamMaxIncludedInNoIntegerInteger corresponding to the status of the maximum bound:
  • 0: no bound.
  • 1: bound included.
  • 2: bound excluded.
  • 3 or 4: not used.

Example

Find below an example of what you can write in yoru customized propagation business rule launched each time you change the type by the type chooser field of the aggregated parameter creation dialog box.

The current selected type can be retrieved using the PlmParamType dynamic attribute. In this example, the valuation of the ranges occurs only if the selected type is Volume.

Let magn(String)
	Let minVal(String)
	Let maxVal(String)

	set magn = ThisObject->GetAttributeString("PlmParamType")

	set minVal = "1.5"
	set maxVal = "42"
	if (magn == "VOLUME")
	{
		ThisObject->ValuateRanges(minVal,maxVal)