ASD Drafting Types

This page discusses:

ASDAnnotation

Inheritance Path

ObjectType
 Feature
  ASDAnnotation

Attributes

Name Type Comment
AnnotationType String -
TemplateName String -

Example

/*
@ShortDescription:  This rule checks if all created methods and attributes work well.
@Parameters: None
*/

/* Input data : DrwView */

let MyAnnotation(ASDAnnotation)
let IndexListASDAnnotation(Integer)
let IndexListParameterNames(Integer)
let ListASDAnnotation(List)
let ListParameterNames(List)
let MyAnnotationType(String)
let ParameterType(String)
let ParameterName(String)
let AnnotationTemplate(String)
let ParametReal(Real)
let ParameterInteger(Integer)
let ParameterString(String)
let ParameterAngle(ANGLE)
let ParameterLength(Length)
let ParameterBoolean(Boolean)

let MyASDView(ASDView)
let MyTuple(KWETuple)
let SubTuple(KWETuple)

MyDrwView->GetASDView(MyASDView)

//Retrieve ASD annotations created in ASD view
if (MyASDView <> NULL)
{
	//ListASDAnnotation = MyASDView.Query("ASDAnnotation","")
	MyASDView->GetASDAnnotation(ListASDAnnotation)
	Notify(" ************** ", MyDrwView.Name," ___ ListASDAnnotation size = ", ListASDAnnotation.Size())

	if (ListASDAnnotation.Size() > 0)
	{				
		for IndexListASDAnnotation=1 while IndexListASDAnnotation <= ListASDAnnotation.Size()
		{
			MyAnnotation = ListASDAnnotation.GetItem(IndexListASDAnnotation)
			
			//Retrieve type of my annotation using the attribute .AnnotationType
			MyAnnotationType =  MyAnnotation.AnnotationType
			Notify(" ****** MyAnnotationType ", IndexListASDAnnotation," = ", MyAnnotationType)				
			
			//From annotation, retrieve list of parameter names
			ListParameterNames.RemoveAll()
			MyAnnotation->ListParameterNames(ListParameterNames)	
			Notify(" List Parameter names size =  ", ListParameterNames.Size())	
			
			AnnotationTemplate = MyAnnotation.TemplateName
			Notify("Annotation Template name =  ", AnnotationTemplate)	
			
			//Checks if MyAnnotation contains a specific parameter type, Ex: If there is CRSID parameter in MyAnnotation
			if (MyAnnotation.HasParameter("CRSID") == True)
			{
				ParameterString = MyAnnotation.GetParameterString("CRSID")
				Notify("Parameter Value CRSID== ", ParameterString)				
			}
			
			IndexListParameterNames = 0
			for ParameterName inside ListParameterNames
			{
				IndexListParameterNames = IndexListParameterNames + 1
				
				//Retrieve type of annotation
				ParameterType = MyAnnotation.ParameterType(ParameterName)
				

				//Retrieve parameter value using the right method GetParameter		
				if (ParameterType == "Real")
				{
					//Ex: retrieve parameter real using GetParameterReal method
					ParametReal = MyAnnotation.GetParameterReal(ParameterName)
					Notify("Parameter Name ", IndexListParameterNames," = ", ParameterName, " # Parameter Type =  ", ParameterType, " # Parameter Value == ", ParametReal)
				}
				if (ParameterType == "Integer")
				{				
					ParameterInteger = MyAnnotation.GetParameterInteger(ParameterName)					
					Notify("Parameter Name ", IndexListParameterNames," = ", ParameterName, " # Parameter Type =  ", ParameterType, " # Parameter Value == ", ParameterInteger)
				}
				if (ParameterType == "String")
				{				
					ParameterString = MyAnnotation.GetParameterString(ParameterName)
					Notify("Parameter Name ", IndexListParameterNames," = ", ParameterName, " # Parameter Type =  ", ParameterType, " # Parameter Value == ", ParameterString)

				}			
				if (ParameterType == "ANGLE")
				{
					ParameterAngle = MyAnnotation.GetParameterAngle(ParameterName)
					Notify("Parameter Name ", IndexListParameterNames," = ", ParameterName, " # Parameter Type =  ", ParameterType, " # Parameter Value == ", ParameterAngle)
				}		
				if (ParameterType == "LENGTH")
				{
					ParameterLength = MyAnnotation.GetParameterLength(ParameterName)
					Notify("Parameter Name ", IndexListParameterNames," = ", ParameterName, " # Parameter Type =  ", ParameterType, " # Parameter Value == ", ParameterLength)
				}	
				if (ParameterType == "Boolean")
				{
					ParameterBoolean = MyAnnotation.GetParameterBoolean(ParameterName)
					Notify("Parameter Name ", IndexListParameterNames," = ", ParameterName, " # Parameter Type =  ", ParameterType, " # Parameter Value == ", ParameterBoolean)
				}	
			}
							
			
		}
	}
}

ASDAttributeSet

Inheritance Path

ObjectType
 Feature
  ASDAttributeSet

Methods

The following methods are associated with this type:

  • AttributeType
  • GetAttributeBoolean
  • GetAttributeInteger
  • GetAttributeReal
  • GetAttributeString
  • HasAttribute
  • ListAttributeNames

ASDHorizontalAlignmentView

Inheritance Path

ObjectType
 Feature
  ASDView
   ASDAlignmentView
    ASDHorizontalAlignmentView

ASDSheet

Inheritance Path

ObjectType
 Feature
  ASDSheet

Attributes

Name Type Comment
DisplayMode Boolean -
Dressups List -
Format String -
GenViewsPosMode Integer -
Height LENGTH -
MarginBottom LENGTH -
MarginLeft LENGTH -
MarginRight LENGTH -
MarginTop LENGTH -
Orientation Integer -
ProjectionMethod Integer -
RepresentedProduct ProductOccurrence -
Scale Real -
Sheet DrwSheet -
Tables List -
Views List -
Width LENGTH -

ASDSheetZone

Inheritance Path

ObjectType
 Feature
  ASDSheetZone

Attributes

Name Type Comment
Attribute1 String -
Sheet String -
Xmax LENGTH -
Xmin LENGTH -
Ymax LENGTH -
Ymin LENGTH -

ASDSpecAlignmentSectionView

Inheritance Path

ObjectType
 Feature
  ASDSpecAbstract
   ASDSpecViewAbstract
    ASDSpecGenViewAbstract
     ASDSpecAlignmentView
      ASDSpecAlignmentSectionView

Example

			

ASDSpecDrawingAbstract

Inheritance Path

ObjectType
 Feature
  ASDSpecAbstract
   ASDSpecDrawingAbstract

Attributes

Name Type Comment
Title String -

ASDSpecSheetAbstract

Inheritance Path

ObjectType
 Feature
  ASDSpecAbstract
   ASDSpecSheetAbstract

Attributes

Name Type Comment
SheetName String -

Methods

The following methods are associated with this type: GetParentDrawing

ASDSpecVerticalAlignmentView

Inheritance Path

ObjectType
 Feature
  ASDSpecAbstract
   ASDSpecViewAbstract
    ASDSpecGenViewAbstract
     ASDSpecAlignmentView
      ASDSpecVerticalAlignmentView

Methods

The following methods are associated with this type:

ASDZoneItem

Inheritance Path

ObjectType
 Feature
  ASDZoneItem

Attributes

Name Type Comment
MarginB LENGTH -
MarginL LENGTH -
MarginR LENGTH -
MarginT LENGTH -
Placement1 String -
Placement2 String -
SnappedPoint String -
SnappingObject Feature -
SnappingPoint String -
SubType String -
Type String -
XMmax LENGTH -
XMmin LENGTH -
Xmax LENGTH -
Xmin LENGTH -
YMmax LENGTH -
YMmin LENGTH -
Ymax LENGTH -
Ymin LENGTH -
Zone Feature -

AnchorPointEnum

Inheritance Path

ObjectType
 Literal
  Enumere
   AnchorPointEnum

Enumerated Values

Value NLS Value Comment
TopLeft TopLeft -
MiddleLeft MiddleLeft -
BottomLeft BottomLeft -
TopCenter TopCenter -
MiddleCenter MiddleCenter -
BottomCenter BottomCenter -
TopRight TopRight -
MiddleRight MiddleRight -
BottomRight BottomRight -