Compute Dimensioning Rules (EHF_ComputeDimensioningRules)

An opening ID is an entry point used to customize business logic. The Compute Dimensioning Rules opening ID enables you to compute dimensioning rules in a drawing. So that, you can decide the measure points to be considered for the dimensioning process of the device.

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

This page discusses:

General Information

This opening ID is invoked during the documentation process in Electrical Manufacturing Preparation application to retrieve the dimensioning rules for each object. This business rule is triggered only once before starting automatic dimensioning on flattened data (which happens before generating the drawing).

The automatic dimensioning logic while invoking this business rule is to provide an input list of all objects. That is found in the current harness which is being flattened. The components are only of the types mentioned here (devices, supports, protections, splices, and mechanical parts).

You are expected to provide output in the form of list of strings - one string per object which is used to create dimension for that object.

This opening ID is used to customize the cutting line-offset distance.

Definition Description
PLM Opening ID EHF_ComputeDimensioningRules
Customization intent Computation
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject: ProductOccurrence (flatten root in which dimensions are created).
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or write Comments
ListOfComponents List Read List of objects found in harness which are valid for dimensioning process.
ListOfDimensioningRules List Write Dimensioning rules for each object in input list
Note: Both the list (input and output list) must have the same size, if the size of the lists does not match the output is ignored.

Sample

The following sample illustrates how to set an offset distance of 50 millimeters to the cutting line.

let iListOfElements(List)
let oListOfDimensioningRule(List)
let item (Feature)
let index(Integer)
let sizeElem(Integer)
let str(STRING)

set iListOfElements = Parameters.GetAttributeObject("ListOfComponents")

index = 1
set sizeElem = iListOfElements.Size()

for index while index <= sizeElem
{
	item= iListOfElements.GetItem(index)
  	if("RingTerminal.1" == item.Name)
	{
	  oListOfDimensioningRule.Append("SegmentCnctPt")
	}
	else if("RingTerminal.2" == item.Name)
	{
	  oListOfDimensioningRule.Append("UserMeasurePt")
	}
	else 
	{	
	  oListOfDimensioningRule.Append("")
	}
}
Parameters.SetAttributeObject("ListOfDimensioningRules", oListOfDimensioningRule)