3D Tolerancing & Annotation Automation Functions

This page describes the exposure of a function in to EKL package of app.

This page discusses:

LogicalGlobalCopySetTo

The function lets you copy the entire annotation set into a target 3D shape representation using logical reroute.

The function lets you copy the entire annotation set into a target 3D shape representation using logical reroute. The system uses the tag identifier on faces to reconnect the copied FTA features to the target geometrical elements. During processing, the system compares the tag identifiers of the target 3DSR faces with those of the source 3DSR faces. The FTA feature reroute is done only if these tag identifiers are identical.

Table 1. Arguments
Name Input/Output Required? Type Comment
AnnotationSet In CATTPSSet Input set to be replicated
TargetPart In PartFeature Target 3D shape representation
Bodies In List

List of bodies and geometrical sets on which the reroute of the FTA features are applied.

If this list is empty, the system uses all the bodies and geometrical sets of the given part feature to reroute the copied FTA features.

ImportOnce In Boolean When set to TRUE the system starts one import which is applied on all the bodies and geometrical sets of the previous list.

When set to FALSE, the system imports the annotation set several times. One per selected body per geometrical set (except if the body per geometrical set does not contain the source logical identifier).

CaptureNameFilter In String String used to filter FTA features. The system keeps only the FTA features that belong to the captured FTA that contain the string.
AsResultWithLink In Boolean When set to TRUE activates copy of annotations therefore with link behavior.

By default, the value is FALSE.

Signature

LogicalGlobalCopySetTo(AnnotationSet : CATTPSSet, TargetPart : PartFeature, Bodies : List, ImportOnce : Boolean, CaptureNameFilter : String [, AsResultWithLink : Boolean]) : Boolean

ReturnType

Boolean

Example

// Annotation set retrieved and dedicated to provide input schema to logical
// reroute
Let TPSSet (CATTPSSet)

// Arguments preparation.
// Retrieve the PartFeature providing the target destination
Let PrtPart(PartFeature)
...

// Refinement of the geometrical domain in case end user is willing to
// specify a much precise area than the PartFeature scope
Let ListBodies(List)
...

// Processing flag to state if import can occur as many time as possible
// or once for the entire scope when "true" value is assigned
Let ImportOnce(Boolean)
ImportOnce = false
...

// String used to filter FTA features.
// The system keeps only the FTA features that belong to the captures FTA that contain the string CaptureNameFilter
Let CaptureNameFilter(String)
...

// Optional argument. When set to TRUE activates copy of annotations as result with link behavior
Let AsResultWithLink(Boolean)
AsResultWithLink = true
...

// Invoke import handling
if ( LogicalGlobalCopySetTo( TPSSet, PrtPart, ListBodies, ImportOnce, CaptureNameFilter, AsResultWithLink ) <> true )
{
	// Error handling
	...
}

GenerateRequirementsFromAnnotationSets

Generates FTA requirement specifications.

This function generates or (given a precedent run) updates the PLM view with relevant FTA requirements corresponding to the provided annotation sets.

This analyzes existing requirement specifications and computes how many FTA requirements are new, modified, or unchanged (and to some extent ignored) based on an input list of annotation sets.

To execute the function properly, the scope of work must be saved for all the modifications and get the required manager role. Else, the call is returning a FALSE value to report an error.

ARGUMENTS

Name Input/Output Required? Type Comment
ListOfAnnotationSets In List This input list must contain only annotation sets (CATTPSSet).

Input collection of annotation sets are considered within a single transaction and underlying FTA annotations are treated as one consistent set of annotations for requirement generation.

ListOfRequirementSpecifications Out List This output is made up of the resulting requirement specifications (requirement specification) aggregating FTA requirements (FTARequirementModel) entities issued from this processing
ListOfProcessOutcomeMetrics Out List This list contains integer parameters only.

Example

// Arguments preparation.
// Annotation sets list to consider in following run
Let ListOfAnnotationSets( list )
...

// Declare the output list containing the Requirement Specification nodes
// under which FTA requirements are aggregated
Let ListOfRequirementSpecifications( list )

// Declare an output list of integers.
// This list provides the quantitative details of the modifications brought
// into PLM view with respect to FTA requirement distribution.
Let ListOfProcessOutcomeMetrics( list )
...

// Invoke FTA generation processing
DisableErrors()
if ( GenerateRequirementsFromAnnotationSets( ListOfAnnotationSets, ListOfRequirementSpecifications, ListOfProcessOutcomeMetrics ) <> true )
{
    // Prompt errors
    Let listOfErrors( list )
	Let AnErrorToPrompt( EvaluationError )
	listOfErrors = EnableErrors( )
	for AnErrorToPrompt inside listOfErrors
	{
		Trace(1,"!!! => Error message: #", AnErrorToPrompt.Message)
		Trace(1,"     -----    ")
	}

	// Error handling
	...
}

// Test processing details list size; must be constant and equals to 8
if ( ListOfProcessOutcomeMetrics->Size( ) <> 8 )
{
	// Error handling
	...
}

// Read processing metrics
// Total of FTAs considered based on the input Set list
Let ProcessedFTAs( integer )
ProcessedFTAs = ListOfProcessOutcomeMetrics[ 1 ]

// New FTAs count with respect to previous FTA requirement processing
Let NewFTACount( integer )
NewFTACount = ListOfProcessOutcomeMetrics[ 2 ]

// Number of modified FTAs
Let ModifiedFTACount( integer )
ModifiedFTACount = ListOfProcessOutcomeMetrics[ 3 ]

// Number of FTAs considered as unchanged
Let UnchangedFTACount( integer )
UnchangedFTACount = ListOfProcessOutcomeMetrics[ 4 ]

// Ignored FTAs
Let IgnoredFTACount( integer )
IgnoredFTACount = ListOfProcessOutcomeMetrics[ 5 ]

// New requirement specification nodes issued of current procedure
Let NewReqSpecCount( integer )
NewReqSpecCount = ListOfProcessOutcomeMetrics[ 6 ]

// Total of FTA requirements resulting from current treatment
Let FTARequirementCount( integer )
FTARequirementCount = ListOfProcessOutcomeMetrics[ 7 ]

// And finaly, Detached FTA requirements according to Requirement Specification baseline at start of this run
Let DetachedFTARequirementCount( integer )
DetachedFTARequirementCount = ListOfProcessOutcomeMetrics[ 8 ]

// Access to Requirement Specifications doing as suggested next:
Let ReqSpecItem( Requirement Specification )
For ReqSpecItem inside ListOfRequirementSpecifications
{
  //... Body of specific development ... 
  if ( ReqSpecItem <> NULL )
                    ...
}

GetPhysicalFTAFeatures

Retrieves the annotation set and the FTA native entity that generate this FTA requirement within the indicated requirement specification.

This method analyzes the FTA requirement within the given requirement specification to determine its originating annotation set and identify the specific annotation from which it is derived.

If the physical FTA is multi-represented (assembly context), the queried requirement indicates several annotations set / annotation as an answer.

This method introspects the FTA requirement contained in the expressed requirement specification to find out the annotation set it comes from, and inside this set, the annotation it derives from.

The proper execution of this process depends primarily on whether the physical representation containing the original FTA definition is correctly loaded in the session where the EKL execution runs. If this condition is not met at the start, the call returns a FALSE value to indicate an error.

Attributes

Name Input/Output Required? Type Comment
FTA Requirement In FTARequirementModel This is an entity on which the method is invoked.
Requirement Specification In Requirement specification This input is corresponding to the requirement node which contains the FTA requirement object.
Annotation Set List Out List This output list is containing annotation set (CATTPSSet) objects. represents the annotation set feature list (each one belonging to a distinct physical representation) that contains the annotation ancestor of the FTA requirement object. Most of the time the list has a single item.
Annotation List Out List This output list contains FTA annotation (CATTPSAllAnnotations). Each list item belongs to the returned annotation set at the same index in the previous list; in addition it defines the FTA native authoring data from which the FTA requirement model object is issued.

Example

// Arguments preparations.
// Inputs
// FTA Requirement and its containing Requirement Specification node are known
Let FTAReq( FTARequirementModel )
Let FatherReqSpec( 'Requirement Specification' )
...

// Outputs
Let FTAAnnotationSetList( List )
Let FTANativeEntityList( List )

// Invoke the FTA entity reverse link resolution from the FTA Requirement model element
DisableErrors()
if ( FTAReq->GetPhysicalFTAFeatures( FatherReqSpec, FTAAnnotationSetList, FTANativeEntityList ) <> true )
{
    // Prompt errors
    Let listOfErrors( list )
	Let AnErrorToPrompt( EvaluationError )
	listOfErrors = EnableErrors( )
	for AnErrorToPrompt inside listOfErrors
	{
		Trace(1,\"!!! => Error message: #\", AnErrorToPrompt.Message)
		Trace(1,\"     -----    \")
	}

	// Error handling
	...
}

// Parse the list output
// Declare 2 outputs; one for the annotation set and another one for the native FTA annotation
Let ListIndex ( integer )
ListIndex = 0
Let FTAAnnotationSet( CATTPSSet )
Let FTANativeEntity( CATTPSAllAnnotations )
for FTAAnnotationSet inside FTAAnnotationSetList
{
    // Retrieve the corresponding FTA Annotation
    ListIndex = ListIndex + 1
    Set FTANativeEntity = FTANativeEntityList[ ListIndex ] 
    Trace(1,\"Physical FTA Annotation source of this requirement, #, belongs to Annotation Set: #\", FTANativeEntity.Name, FTAAnnotationSet.Name )
}

...

CreateMfgRequirementStackUp

Creates a relation between two specific requirements.

This function defines a tolerance stack-up and supports the manufacturing processes. As a manufacturing engineer, you can translate a single functional specification into a series of interconnected tolerances to ensure that the functional intent is met.

If the functional specification is divided for manufacturing into the expresion FS = w1 * Req1 + w2 * Req2, this function describes one contributor of the entire addition. The exercise consists in creating two relations: one to associate FS and Req1 using the w1 weight, and a second one to link FS with Req2 using the w2 weight.

If an error occurs, the call ends, the return code appears as false, and the FTA relation object as NULL. If no error occurred, the return code is true.

Attributes

Name Input/Output Required? Type Comment
Functional Target In Requirement Defines a requirement (or any derived entity inheriting from a requirement) and represents the functional specification objective of the tolerance stack-up. Typically, multiple relations are required to fully define a stack-up, all referencing the same initial requirement argument.
Stack-Up Contributor In Requirement Represents one contributor in the stack-up description and includes a weight value that shows its importance within the entire stack-up.
Weight In Real Indicates the importance of the Stack-Up contributor in the equation.
Note: This value can be negative as no checks are performed on it.
Requirements Relation Out MfgFTADerivedFromEngFTA Represents the relation created between the given Functional Target and the stack-up contributor, based on the Weight value.

Example

// Arguments preparation.
// Retrieve the Requirements to bind
Let ConditionSpecReq( Requirement )
Let StackUpOperand  ( Requirement )
...

// Declare the output argument.
Let FTARelation( MfgFTADerivedFromEngFTA )

// Compute the weight of the operand into the Stack Up
Let OperandWeight( Real )
...

// Operate then the stack up relation that associate the ConditionSpecReq with the StackUpOperand with respect to its wieght, OperandWeight, in this relation
if ( CreateMfgRequirementStackUp( ConditionSpecReq, StackUpOperand, OperandWeight, FTARelation ) <> true )
{
	// Error handling
	...
}

...