About Symbol Annotation Templates

You can use symbol annotation templates for creation of the Break/Continuous Symbol annotation.

All values are predefined in the templates.

This page discusses:

See Also
Configuring Annotation Templates
About Advanced Annotation Templates

Basic Concepts



This command creates a new Break/Contunuous Symbol.

  • A parameter set under which all template parameters are aggregated.
  • A relation set under which all template formulas and rules are aggregated.

Parameters

Symbol Annotation templates have knowledge parameters that are used to expose the parameters to create an annotation or to drive the template.

You can create parameters under the parameters node in the following ways:

  • Edit the template and opening the parameter explorer from edition panel.
  • Create parameters using , and cutting and pasting them under the Parameters node.

The following types of parameter can be created:

  • Visible parameters: Available in the annotation edition panel.
  • Hidden parameters: Not available in the annotation edition panel.
  • Locked/Constant parameters: Available in the annotation edition panel but not editable.

The following specific parameters that are computed from annotation instance can be used and set in the template:

Name Type Value Description
Arrow Length Length Computed Determines the length between arrows of continuous and break symbol.
Distance Offset Length Computed Determines the distance between arrows for the break symbol.
Parallel Offset Length Computed Determines the parallel distance between arrows for the break symbol.

Relations

Annotation template can have knowledge relations used to drive it and add particular behavior that can editable through parameters.

Relations have to be added under the Relations node:

  1. Create a relation.
  2. The relation is added to the Relations set under root.
  3. Cut and paste it under the Relations node under the template.

Trigger Action



The Symbol Annotation template must have only one trigger action. If the template has more than one trigger action, only the first action is considered. If the trigger action has an additional input type ASDSymbolAnnotaion, then this action:

  • Does not create a symbol.
  • Does not fetch an authoring object.

You must write the logic to get the symbol type from the input annotation, and construct the symbol ,And show or hide related type parameters based on the symbol type. To get the symbol type, a new knowledgeware method is provided on the knowledgeware feature ASDSymbolAnnotaion.

The description of new knowledgeware feature symbol annotation is as follows:

Types: ASDSymbolAnnotaion inherited from ASDAnnotation

Method: ASDSymbolType GetSymbolType ()

Computes the symbol type based on an input set on the symbol annotation. Return values are ASDSymbolType of type ASDContinuousSymbol or ASDBreakSymbol.

The below table describes the knowledgeware types:

Knowledgeware Type Description
ASDSymbolType Generic type for the SymbolType.
ASDContinuousSymbol Continuous symbol type derived from the ASDSymbolType.
ASDBreakSymbol Break symbol type derived from the ASDSymbolType.

Method: Length GetCrossingPlateThicknessInSheetRef()

Returns the crossing plate thickness on sheet reference.

Example

  • Name: Input Annotation
  • Type: ASDSymbolAnnotation

The sample code to build the break or continuous symbol on the symbol type returned by the SymbolAnnotation

/*Sample Code to build the break or continious symbol base on the symbol type returned by the SymbolAnnotation*/
if(InputAnnotation <> NULL)
{
	
	Let ContiniousSymbol(DrwArrow)
	Let BreakSymbLeft(DrwArrow)
	Let BreakSymbRight(DrwArrow)
	
	//Break and continous symbol arrows
	Set ContiniousSymbol = `Structural View Symbol\BreakOrContiniousSymbol\Arrow.1`
	Set BreakSymbLeft    =`Structural View Symbol\BreakOrContiniousSymbol\Arrow.2`
	Set BreakSymbRight =`Structural View Symbol\BreakOrContiniousSymbol\Arrow.3`
	
	//Initilize the arrow color to black
	ContiniousSymbol.Color="BLACK"
	BreakSymbLeft.Color="BLACK"
	BreakSymbRight.Color="BLACK"
	
	//Reset to default
	ContiniousSymbol.Show=TRUE
	BreakSymbLeft.Show = TRUE
	BreakSymbRight.Show=TRUE
	
	//Get the Symbol Type
	Let SymbolType(ASDSymbolType)
	SymbolType = InputAnnotation->GetSymbolType()
	
	if(NULL <> SymbolType)
	{
		
		if(SymbolType.IsASortOf("ASDContinuousSymbol"))
		{
			//If  symbol type is a ContinuousSymbol,
			// Hide the break symbol arrow, and show only the parameter relatd to continuous Symbol,
			ContiniousSymbol.Show=TRUE
			BreakSymbLeft.Show = FALSE
			BreakSymbRight.Show=FALSE
			
			`Structural View Symbol\BreakOrContiniousSymbol\ASDDrwAnnotationTemplate.1\Parameters\ParallelOffset`.Show = FALSE
			`Structural View Symbol\BreakOrContiniousSymbol\ASDDrwAnnotationTemplate.1\Parameters\DistanceOffset`.Show = FALSE
		}
		else if(SymbolType.IsASortOf("ASDBreakSymbol"))
		{
			//If  symbol type is a ContinuousSymbol,
			// Hide the continious  symbol arrow, and show only the parameter relatd to break Symbol,
			Let SymBreak(ASDBreakSymbol)
			set SymBreak = SymbolType
			
			//Get the crossing plate thickness with respect to sheet reference
			Let PlateThicknessInSheetRef(Length)
			PlateThicknessInSheetRef  = SymBreak.GetCrossingPlateThicknessInSheetRef()
			
			//Set the plate thickness to distance offset parameter, user can also add own distance offset
			if(PlateThicknessInSheetRef > 0mm)
				`Structural View Symbol\BreakOrContiniousSymbol\ASDDrwAnnotationTemplate.1\Parameters\DistanceOffset` = PlateThicknessInSheetRef + 1mm
			
			
			ContiniousSymbol.Show=FALSE
			BreakSymbLeft.Show = TRUE
			BreakSymbRight.Show=TRUE
			`Structural View Symbol\BreakOrContiniousSymbol\ASDDrwAnnotationTemplate.1\Parameters\ParallelOffset`.Show = TRUE
			`Structural View Symbol\BreakOrContiniousSymbol\ASDDrwAnnotationTemplate.1\Parameters\DistanceOffset`.Show = TRUE
		}
	}
}

An optional action Update Arrow updates the arrow when you modify the template parameter on Symbol annotation instance.

Note: The Symbol Annotation template must not contain any leader.