ASDAlignmentSectionView.GetBoundaryMargin()
Signature
ASDAlignmentSectionView.GetBoundaryMargin(oHMargin : LENGTH, oVMargin : LENGTH) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oHMargin |
Out |
|
LENGTH |
-
|
oVMargin |
Out |
|
LENGTH |
-
|
ASDAlignmentSectionView.GetOffset()
Signature
ASDAlignmentSectionView.GetOffset(Offset : LENGTH) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oOffset |
Out |
|
LENGTH |
-
|
ASDAlignmentView.CreateOrReplaceTable()
ASDAlignmentView.CreateOrReplaceTable verifies the creation or
replacement of a table in the alignment view.
Signature
ASDAlignmentView.CreateOrReplaceTable(Filter : String, PlacementStrategy : AnchorPointEnum, TableAnchor : AnchorPointEnum, RetainTablePosition : Boolean, DiscreetPointsSpacing : LENGTH]) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
Filter |
In |
|
String |
- |
PlacementStrategy |
In |
|
AnchorPointEnum |
- |
TableAnchor |
In |
|
AnchorPointEnum |
- |
RetainTablePosition |
In |
|
Boolean |
- |
DiscreetPointsSpacing |
In |
|
LENGTH |
- |
Example 1
"if (InputView.IsASortOf(\"DrwView\") AND Input.IsASortOf(\"AECAlignment2DHorizontal\"))
{
Let Result(Boolean)
Let strFilter(String)
Let PlacementStrategy(AnchorPointEnum)
Let TableAnchor(AnchorPointEnum)
Let RetainTablePosition (Boolean)
Let DiscreetPointsSpacing(Length)
Let DftView(DrwView)
Let ASDDftView(ASDView)
Let ASDDftAlignmentView(ASDAlignmentView)
// Retrieve the ASD Alignment view from an input argument
set DftView = ...
if( NULL <> DftView)
DftView->GetASDView(ASDDftView)
set ASDDftAlignmentView = ASDDftView
strFilter = \"PITable\"
PlacementStrategy = \"MiddleRight\"
TableAnchor = \"BottomLeft\"
RetainTablePosition = TRUE
DiscreetPointsSpacing = 20
Result = ASDDftAlignmentView.CreateOrReplaceTable(strFilter, PlacementStrategy, TableAnchor, RetainTablePosition, DiscreetPointsSpacing)
}
Example 2
if (InputView.IsASortOf(\"DrwView\") AND Input.IsASortOf(\"AECAlignment2DVertical\"))
{
Let Result(Boolean)
Let strFilter(String)
Let PlacementStrategy(AnchorPointEnum)
Let TableAnchor(AnchorPointEnum)
Let RetainTablePosition (Boolean)
Let DftView(DrwView)
Let ASDDftView(ASDView)
Let ASDDftAlignmentView(ASDAlignmentView)
// Retrieve the ASD Alignment view from an input argument
set DftView = ...
if( NULL <> DftView)
DftView->GetASDView(ASDDftView)
set ASDDftAlignmentView = ASDDftView
strFilter = \"PITable\"
PlacementStrategy = \"MiddleRight\"
TableAnchor = \"BottomLeft\"
RetainTablePosition = TRUE
Result = ASDDftAlignmentView.CreateOrReplaceTable(strFilter, PlacementStrategy, TableAnchor, RetainTablePosition)
}";
ASDAlignmentView.GetAlignment()
ASDAlignmentView.GetAlignment retrieves the alignment
feature.
Signature
ASDAlignmentView.GetAlignment(Alignment : Feature) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
Alignment |
Out |
|
Feature |
- |
Example
"if (InputView.IsASortOf(\"DrwView\"))
{
Let Result(Boolean)
Let DftView(DrwView)
Let ASDDftView(ASDView)
Let ASDDftAlignmentView(ASDAlignmentView)
Let Alignment(Feature)
// Retrieve the ASD Alignment view from an input argument
set DftView = ...
if( NULL <> DftView)
DftView->GetASDView(ASDDftView)
set ASDDftAlignmentView = ASDDftView
Result = ASDDftAlignmentView.GetAlignment(Alignment)
}";
ASDAlignmentView.GetEndDistance()
ASDAlignmentView.GetEndDistance retrieves the end distance.
Signature
ASDAlignmentView.GetEndDistance(oEndDistance : LENGTH) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oEndDistance |
Out |
|
LENGTH |
- |
Example
"if (InputView.IsASortOf(\"DrwView\"))
{
Let Result(Boolean)
Let DftView(DrwView)
Let ASDDftView(ASDView)
Let ASDDftAlignmentView(ASDAlignmentView)
Let EndDist(Length)
// Retrieve the ASD Alignment view from an input argument
set DftView = ...
if( NULL <> DftView)
DftView->GetASDView(ASDDftView)
set ASDDftAlignmentView = ASDDftView
Result = ASDDftAlignmentView.GetEndDistance(EndDist)
}";
ASDAlignmentView.GetStartDistance()
ASDAlignmentView.GetStartDistance retrieves the start
distance.
Signature
ASDAlignmentView.GetStartDistance(oStartDistance : LENGTH) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oStartDistance |
Out |
|
LENGTH |
- |
Example
"if (InputView.IsASortOf(\"DrwView\"))
{
Let Result(Boolean)
Let DftView(DrwView)
Let ASDDftView(ASDView)
Let ASDDftAlignmentView(ASDAlignmentView)
Let StartDist(Length)
// Retrieve the ASD Alignment view from an input argument
set DftView = ...
if( NULL <> DftView)
DftView->GetASDView(ASDDftView)
set ASDDftAlignmentView = ASDDftView
Result = ASDDftAlignmentView.GetStartDistance(StartDist)
}";
ASDAnnotation.ParameterType
ASDAnnotation.ParameterType lets you get the type of a parameter from
its name. Depending on its type, the parameter value can be retrieved by the
corresponding method.
Signature
ASDAnnotation.ParameterType(Name : String) : String
Arguments
| Name |
Input/Output |
Required |
Type |
Comment |
| Parameter name |
In |
|
String |
Name of the parameter of the string type |
ReturnType
The possible values are as follows:
ASDAnnotation.GetAuthoringObject
ASDAnnotation.GetAuthoringObject lets you access the 3D object or product from a
smart annotation.
Signature
ASDAnnotation.GetAuthoringObject(Name : List) : Boolean
Arguments
| Name |
Input/Output |
Required |
Type |
Comment |
| ListAuthoringObject |
Out |
|
List |
Return the 3D object or product |
Example
//Let assume this is an action with MyDrwView(DrwView) argument as inputs
let MyAnnotation(ASDAnnotation)
let Indexi(Integer)
let Indexj(Integer)
let ListASDAnnotation(List)
let ListAuthoringObject(List)
let AuthoringObject(Feature)
let MyASDView(ASDView)
Let HasAuthoringObject(Boolean)
MyDrwView->GetASDView(MyASDView)
//Retrieve ASD annotations created in ASD view
if (MyASDView <> NULL)
{
MyASDView->GetASDAnnotation(ListASDAnnotation)
Notify(" ************** ", MyDrwView.Name," ___ ListASDAnnotation size =”,ListASDAnnotation.Size())
HasAuthoringObject = False
for Indexi=1 while Indexi <= ListASDAnnotation.Size()
{
AuthoringObject = NULL
MyAnnotation = ListASDAnnotation.GetItem(Indexi)
//Retrieve authoring object of annotation
HasAuthoringObject = MyAnnotation.GetAuthoringObject(ListAuthoringObject)
if (HasAuthoringObject == False) Notify(" No AuthoringObject for ", MyAnnotation.Name)
for Indexj=1 while Indexj <= ListAuthoringObject.Size()
{
AuthoringObject = ListAuthoringObject[Indexj]
if (HasAuthoringObject == True) Notify(" AuthoringObject ", Indexi," of the annotation ",MyAnnotation.Name, " is ", AuthoringObject.Name)
}
}
}
ASDAnnotation.GetParameterAngle
ASDAnnotation.GetParameterAngle lets you retrieve the parameter value
of the Angle type from its
name.
Signature
ASDAnnotation.GetParameterAngle(Name : String) : Angle
Arguments
| Name |
Input/Output |
Required |
Type |
Comment |
| Parameter name |
In |
|
String |
Name of the parameter of angle type |
ASDAnnotation.GetParameterBoolean
ASDAnnotation.GetParameterBoolean lets you retrieve the parameter value
of a Boolean type from its
name.
Signature
ASDAnnotation.GetParameterBoolean(Name : String) : Boolean
Arguments
| Name |
Input/Output |
Required |
Type |
Comment |
| Parameter name |
In |
|
String |
Name of the parameter of a Boolean type |
ASDAnnotation.GetParameterInteger
ASDAnnotation.GetParameterInteger lets you retrieve the parameter value
of an Integer type from its
name.
Signature
ASDAnnotation.GetParameterInteger(Name : String) : Integer
Arguments
| Name |
Input/Output |
Required |
Type |
Comment |
| Parameter name |
In |
|
String |
Name of the parameter of Integer type |
ASDAnnotation.GetParameterLength
ASDAnnotation.GetParameterLength lets you retrieve the parameter value
of Length type from its
name.
Signature
ASDAnnotation.GetParameterLength(Name : String) : Length
Arguments
| Name |
Input/Output |
Required |
Type |
Comment |
| Parameter name |
In |
|
String |
Name of the parameter of Length type |
ASDAnnotation.GetParameterReal
ASDAnnotation.GetParameterReal lets you retrieve the parameter value of
a Real type from its
name.
Signature
ASDAnnotation.GetParameterReal(Name : String) : Real
Arguments
| Name |
Input/Output |
Required |
Type |
Comment |
| Parameter name |
In |
|
String |
Name of the parameter of Real type |
ASDAnnotation.GetParameterString
ASDAnnotation.GetParameterString lets you retrieve the parameter value
of a String type from its
name.
Signature
ASDAnnotation.GetParameterString(Name : String) : String
Arguments
| Name |
Input/Output |
Required |
Type |
Comment |
| Parameter name |
In |
|
String |
Name of the parameter of String type |
ASDAnnotation.HasParameter
ASDAnnotation.HasParameter verifies if the annotation contains a
parameter of a given name.
Arguments
| Name |
Input/Output |
Required |
Type |
Comment |
| Parameter name |
In |
|
String |
Name of the parameter |
ASDAnnotation.ListParameterNames
ASDAnnotation.ListParameterNames returns a list of parameter names.
Using the name, value and type can then be
retrieved.
Signature
ASDAnnotation.ListParameterNames(oListASDParameters : List) : Boolean
Arguments
| Name |
Input/Output |
Required |
Type |
Comment |
| oListASDParameters |
Out |
|
List |
The list of parameters names defined in the
annotation |
ASDAnnotation.ParameterType()
ASDAnnotation.ParameterType defines the parameter name.
Signature
ASDAnnotation.ParameterType(Name : String) : String
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
Name |
In |
|
String |
- |
ASDAttributeSet.AttributeType()
Signature
ASDAttributeSet.AttributeType(Name : String) : String
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
Name
|
In |
|
String
|
- |
ASDAttributeSet.GetAttributeBoolean()
Signature
ASDAttributeSet.GetAttributeBoolean(Name : String) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
Name
|
In |
|
String
|
- |
ASDAttributeSet.GetAttributeInteger()
Signature
ASDAttributeSet.GetAttributeInteger(Name : String) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
Name
|
In |
|
String
|
- |
ASDAttributeSet.GetAttributeReal()
Signature
ASDAttributeSet.GetAttributeReal(Name : String) : Real
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
Name
|
In |
|
String
|
- |
ASDAttributeSet.GetAttributeString()
Signature
ASDAttributeSet.GetAttributeString(Name : String) : String
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
Name
|
In |
|
String
|
- |
ASDAttributeSet.HasAttribute()
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
Name
|
In |
|
String
|
- |
ASDAttributeSet.ListAttributeNames()
Signature
ASDAttributeSet.ListAttributeNames() : List
ASDBox.IsFullyInside()
ASDBox.IsFullyInside verifies if an object is fully inside the view box.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iObject
|
In |
|
Feature
|
The object for which the check is performed. Only
ProductOccurrence objects are supported.
|
oIsFullyInside
|
Out |
|
Boolean
|
Result
|
ASDGenerativeTable.QueryTableDataUsingOccurrence()
Signature
ASDGenerativeTable.QueryTableDataUsingOccurrence(Occurrence : ProductOccurrence, Column : Integer) : String
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
Occurrence
|
In |
|
ProductOccurrence |
- |
Column
|
In |
|
Integer
|
- |
ASDHorizontalAlignmentView.SetBackgroundImageType()
ASDHorizontalAlignmentView.SetBackgroundImageType specifies the types
of background images on the alignment view.
Signature
ASDHorizontalAlignmentView.SetBackgroundImageType(BackgroundImageType : BackgroundImageTypeEnum) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
BackgroundImageType |
In |
|
BackgroundImageTypeEnum |
- |
Example
"if (InputView.IsASortOf(\"DrwView\") AND Input.IsASortOf(\"AECAlignment2DHorizontal\"))
{
Let Result(Boolean)
Let BackgroundImageType(BackgroundImageTypeEnum)
Let DftView(DrwView)
Let ASDDftView(ASDView)
Let ASDDftAlignmentView(ASDAlignmentView)
Let ASDDftHorizontalAlignmentView(ASDHorizontalAlignmentView)
// Retrieve the ASD Alignment view from an input argument
set DftView = InputView
if( NULL <> DftView)
DftView->GetASDView(ASDDftView)
set ASDDftAlignmentView = ASDDftView
set ASDDftHorizontalAlignmentView = ASDDftAlignmentView
BackgroundImageType = \"BrighterImageMapping\"
Result = ASDDftHorizontalAlignmentView.SetBackgroundImageType(BackgroundImageType)
}";
ASDSlopeAnnotation.GetSlopeDirection()
Signature
ASDSlopeAnnotation.GetSlopeDirection() : String
ASDStepAlongAlignment.GetStepAsDistance()
Signature
ASDStepAlongAlignment.GetStepAsDistance() : List
ASDSpecAlignmentSectionView.GetPlaneOrientationMode()
Signature
ASDSpecAlignmentSectionView.GetPlaneOrientationMode(oPlaneOrientationMode : SectionPlaneOrientationModeEnum) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oPlaneOrientationMode |
Out |
|
SectionPlaneOrientationModeEnum |
-
|
ASDSpecAlignmentSectionView.SetPlaneOrientationMode()
Signature
ASDSpecAlignmentSectionView.SetPlaneOrientationMode(iPlaneOrientationMode : SectionPlaneOrientationModeEnum) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iPlaneOrientationMode |
In |
|
SectionPlaneOrientationModeEnum |
-
|
ASDSpecAlignmentView.GetEndDistance()
ASDSpecAlignmentView.GetEndDistance retrieves the start
distance.
Signature
ASDSpecAlignmentView.GetEndDistance(oEndDistance : LENGTH) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oEndDistance |
Out |
|
LENGTH |
- |
ASDSpecAlignmentView.GetStartDistance()
ASDSpecAlignmentView.GetStartDistance retrieves the start
distance.
Signature
ASDSpecAlignmentView.GetStartDistance(oStartDistance : LENGTH) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oStartDistance |
Out |
|
LENGTH |
- |
ASDSpecAlignmentView.GetViewTemplate()
ASDSpecAlignmentView.GetViewTemplate retrieves the view
template.
Signature
ASDSpecAlignmentView.GetViewTemplate(oViewTemplateName : String) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oViewTemplateName |
Out |
|
String |
- |
ASDSpecAlignmentView.SetEndDistance()
ASDSpecAlignmentView.SetEndDistance sets the end distance.
Signature
ASDSpecAlignmentView.SetEndDistance(iEndDistance : LENGTH) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iEndDistance |
In |
|
LENGTH |
- |
ASDSpecAlignmentView.SetStartDistance()
ASDSpecAlignmentView.SetStartDistance sets the start
distance.
Signature
ASDSpecAlignmentView.SetStartDistance(iStartDistance : LENGTH) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iStartDistance |
In |
|
LENGTH |
- |
ASDSpecAlignmentView.SetViewTemplate()
ASDSpecAlignmentView.SetViewTemplate sets the view
template.
Note:
Suffix characters are supported for view template names.
Signature
ASDSpecAlignmentView.SetViewTemplate(iViewTemplateName : String) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iViewTemplateName |
In |
|
String |
- |
ASDSpecDrawing.GetDrawingStandard()
ASDSpecDrawing.GetDrawingStandard returns the name of the drawing standard
stored in the ASDSpecDrawing object.
Signature
ASDSpecDrawing.GetDrawingStandard(oDrawingStandardName : String) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oDrawingStandardName
|
Out |
|
String
|
The name of the drawing standard. |
ASDSpecDrawing.SetDrawingStandard()
ASDSpecDrawing.SetDrawingStandard specifies the provided drawing standard to
the ASDSpecDrawing object.
Signature
ASDSpecDrawing.SetDrawingStandard(iDrawingStandardName : String) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iDrawingStandardName
|
In |
|
String
|
The name of the drawing standard. |
ASDSpecFrontView.GetProjectionPlane()
ASDSpecFrontView.GetProjectionPlane function returns the projection plane
info stored in the view's specification.
Signature
ASDSpecFrontView.GetProjectionPlane(oOriginX : Real, oOriginY : Real, oOriginZ : Real, oFirstDirectionX : Real, oFirstDirectionY : Real, oFirstDirectionZ : Real, oSecondDirectionX : Real, oSecondDirectionY : Real, oSecondDirectionZ : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oOriginX
|
Out |
|
Real
|
X coordinate for Origin.
|
oOriginY
|
Out |
|
Real
|
Y coordinate for Origin.
|
oOriginZ
|
Out |
|
Real
|
Z coordinate for Origin.
|
oFirstDirectionX
|
Out |
|
Real
|
X coordinate for First Direction.
|
oFirstDirectionY
|
Out |
|
Real
|
Y coordinate for First Direction.
|
oFirstDirectionZ
|
Out |
|
Real
|
Z coordinate for First Direction.
|
oSecondDirectionX
|
Out |
|
Real
|
X coordinate for Second Direction.
|
oSecondDirectionY
|
Out |
|
Real
|
Y coordinate for Second Direction.
|
oSecondDirectionZ
|
Out |
|
Real
|
Z coordinate for Second Direction.
|
ASDSpecFrontView.GetViewTemplate()
ASDSpecFrontView.GetViewTemplate function returns the name of the View
Template stored in the view's specification.
Signature
ASDSpecFrontView.GetViewTemplate(oViewTemplateName : String) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oViewTemplateName
|
Out |
|
String
|
The template name. |
ASDSpecFrontView.SetProjectionPlane()
ASDSpecFrontView.SetProjectionPlane function specifies the projection plane
info to the view's specification based on the iOriginMode.
Signature
ASDSpecFrontView.SetProjectionPlane(iOriginMode : Integer, iPointX : Real, iPointY : Real, iPointZ : Real, iFirstDirectionX : Real, iFirstDirectionY : Real, iFirstDirectionZ : Real, iSecondDirectionX : Real, iSecondDirectionY : Real, iSecondDirectionZ : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iOriginMode
|
In |
|
Integer
|
Supported Values:
- 0: Origin is the point provided to the
SetProjectionPlane() method.
- 1: Origin is the global (0,0,0).
- 2: Origin is the global (0,0,0) projected on the
plane.
|
iPointX
|
In |
|
Real
|
X coordinate of the Origin.
|
iPointY
|
In |
|
Real
|
Y coordinate of the Origin.
|
iPointZ
|
In |
|
Real
|
Z coordinate of the Origin.
|
iFirstDirectionX
|
In |
|
Real
|
X coordinate of the First Direction.
|
iFirstDirectionY
|
In |
|
Real
|
Y coordinate of the First Direction.
|
iFirstDirectionZ
|
In |
|
Real
|
Z coordinate of the First Direction.
|
iSecondDirectionX
|
In |
|
Real
|
X coordinate of the Second Direction.
|
iSecondDirectionY
|
In |
|
Real
|
Y coordinate of the Second Direction.
|
iSecondDirectionZ
|
In |
|
Real
|
Z coordinate of the Second Direction.
|
ASDSpecFrontView.SetViewTemplate()
ASDSpecFrontView.SetViewTemplate function specifies the provided view
template to the view's specification using the template name.
Note:
Suffix characters are supported for view template names.
Signature
ASDSpecFrontView.SetViewTemplate(iViewTemplateName : String) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iViewTemplateName
|
In |
|
String
|
The template name. |
ASDSpecGenViewAbstract.AddNewViewBoxSpec()
ASDSpecGenViewAbstract.AddNewViewBoxSpec function adds a new ASDSpecViewBox
to this ASDSpecGenViewAbstract object.
Signature
ASDSpecGenViewAbstract.AddNewViewBoxSpec(oViewBoxSpec : ASDSpecViewBox) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oViewBoxSpec
|
Out |
|
ASDSpecViewBox |
The view box specification that is created for
the view. |
ASDSpecGenViewAbstract.GetScale()
ASDSpecGenViewAbstract.GetScale retrieves the view scale.
Signature
ASDSpecGenViewAbstract.(oScale : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oScale |
Out |
|
Real |
- |
ASDSpecGenViewAbstract.GetViewBoxSpecs()
ASDSpecGenViewAbstract.GetViewBoxSpecs function gets the list of all
ASDSpecViewBox associated with this ASDSpecGenViewAbstract object.
Signature
ASDSpecGenViewAbstract.GetViewBoxSpecs(oListViewBoxSpecs : List) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oListViewBoxSpecs
|
Out |
|
List
|
The list of all ASDSpecViewBox associated with
this object. |
ASDSpecGenViewAbstract.GetViewLinks()
ASDSpecGenViewAbstract.GetViewLinks function returns the view links stored in
the ASDSpecGenViewAbstract object.
Signature
ASDSpecGenViewAbstract.GetViewLinks(oViewLinks : List) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oViewLinks
|
Out |
|
List
|
The list of links. Only Product Occurrences
are supported. |
ASDSpecGenViewAbstract.SetScale()
ASDSpecGenViewAbstract.SetScale sets the view scale.
Note:
When the view anchor
point is centred on the sheet, the
ASDSpecViewPositionAlignment.SetViewSpaceAllocation method is used to define the
view scale instead of ASDSpecGenViewAbstract.SetScale.
Signature
ASDSpecGenViewAbstract.SetScale(iScale : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iScale |
In |
|
Real |
- |
ASDSpecGenViewAbstract.SetViewLinks()
ASDSpecGenViewAbstract.SetViewLinks function specifies View Links in an
ASDSpecGenViewAbstract. The view links are provided using a list of Product
Occurrences.
Signature
ASDSpecGenViewAbstract.SetViewLinks(iViewLinks : List) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iViewLinks
|
In |
|
List
|
The list of links. Only Product Occurrences
are supported. |
ASDSpecHorizontalAlignmentView.GetBackgroundImageRelimit()
Signature
ASDSpecHorizontalAlignmentView.GetBackgroundImageRelimit(oBackgroundLimited : Boolean) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oBackgroundLimited |
Out |
|
Boolean |
-
|
Example
// Let assume this is an action with a SpecView (ASDSpecHorizontalAlignmentView) argument as input
Let oBackgroundImageRelimit (Boolean)
oBackgroundImageRelimit = FALSE
ViewSpec.GetBackgroundImageRelimit (oBackgroundImageRelimit)
ASDSpecHorizontalAlignmentView.GetBackgroundImageType()
Signature
ASDSpecHorizontalAlignmentView.GetBackgroundImageType(oBackgroundImageType : BackgroundImageTypeEnum) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oBackgroundImageType |
Out |
|
BackgroundImageTypeEnum |
-
|
Example
// Let assume this is an action with a SpecView (ASDSpecHorizontalAlignmentView) argument as input
Let BackgroundImageType(BackgroundImageTypeEnum)
BackgroundImageType = \"NoImage\"
ViewSpec.GetBackgroundImageType(BackgroundImageType)
ASDSpecHorizontalAlignmentView.GetMargin()
ASDSpecHorizontalAlignmentView.GetMargin retrieves the margin
value.
Signature
ASDSpecHorizontalAlignmentView.GetMargin(oMargin : LENGTH) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oMargin |
Out |
|
LENGTH |
- |
ASDSpecHorizontalAlignmentView.SetBackgroundImageRelimit()
Signature
ASDSpecHorizontalAlignmentView.SetBackgroundImageRelimit(iBackgroundLimited : Boolean) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iBackgroundLimited |
In |
|
Boolean |
-
|
Example
// Let assume this is an action with a SpecView (ASDSpecHorizontalAlignmentView) argument as input
Let oBackgroundImageRelimit (Boolean)
oBackgroundImageRelimit = FALSE
SpecView.SetBackgroundImageRelimit(oBackgroundImageRelimit)
ASDSpecHorizontalAlignmentView.SetBackgroundImageType()
Signature
ASDSpecHorizontalAlignmentView.SetBackgroundImageType(iBackgroundImageType : BackgroundImageTypeEnum) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iBackgroundImageType |
In |
|
BackgroundImageTypeEnum |
-
|
Example
// Let assume this is an action with a SpecView (ASDSpecHorizontalAlignmentView) argument as input
Let BackgroundImageType(BackgroundImageTypeEnum)
BackgroundImageType = \"BrighterImageMapping\"
SpecView.SetBackgroundImageType(BackgroundImageType)
ASDSpecHorizontalAlignmentView.SetMargin()
ASDSpecHorizontalAlignmentView.SetMargin sets the margin
value.
Signature
ASDSpecHorizontalAlignmentView.SetMargin(iMargin : LENGTH) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iMargin |
In |
|
LENGTH |
- |
ASDSpecSheet.GetSheetTemplate()
ASDSpecSheet.GetSheetTemplate function returns the name of the sheet template
stored in the ASDSpecSheet object.
Signature
ASDSpecSheet.GetSheetTemplate(oSheetTemplateName : String) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oSheetTemplateName
|
Out |
|
String
|
The template name. |
ASDSpecSheet.SetSheetTemplate()
ASDSpecSheetSetSheetTemplate function specifies a provided sheet
template to the ASDSpecSheet object using the template name.
Note:
Suffix characters are supported for sheet template names.
Signature
ASDSpecSheet.SetSheetTemplate(iSheetTemplateName : String) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iSheetTemplateName
|
In |
|
String
|
The template name. |
ASDSpecSheetAbstract.GetParentDrawing()
ASDSpecSheetAbstract.GetParentDrawing function returns the parent drawing
stored in the ASDSpecSheetAbstract object.
Signature
ASDSpecSheetAbstract.GetParentDrawing(oParentDrawing : DrwDrawing) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oParentDrawing
|
Out |
|
DrwDrawing |
The parent drawing. |
ASDSpecStructuralView.GetProjectionPlane()
ASDSpecStructuralView.GetProjectionPlane function returns the projection
plane info stored in the view's specification.
Signature
ASDSpecStructuralView.GetProjectionPlane
(oOriginX : Real,
oOriginY : Real,
oOriginZ : Real,
oFirstDirectionX : Real,
oFirstDirectionY : Real,
oFirstDirectionZ : Real,
oSecondDirectionX : Real,
oSecondDirectionY : Real,
oSecondDirectionZ : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oOriginX
|
Out |
|
Real
|
X coordinate for Origin.
|
oOriginY
|
Out |
|
Real
|
Y coordinate for Origin.
|
oOriginZ
|
Out |
|
Real
|
Z coordinate for Origin.
|
oFirstDirectionX
|
Out |
|
Real
|
X coordinate for First Direction.
|
oFirstDirectionY
|
Out |
|
Real
|
Y coordinate for First Direction.
|
oFirstDirectionZ
|
Out |
|
Real
|
Z coordinate for First Direction.
|
oSecondDirectionX
|
Out |
|
Real
|
X coordinate for Second Direction.
|
oSecondDirectionY
|
Out |
|
Real
|
Y coordinate for Second Direction.
|
oSecondDirectionZ
|
Out |
|
Real
|
Z coordinate for Second Direction.
|
ASDSpecStructuralView.GetViewTemplate()
ASDSpecStructuralView.GetViewTemplate function returns the name of the view
template stored in the view's specification.
Signature
ASDSpecStructuralView.GetViewTemplate(oViewTemplateName : String) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oViewTemplateName
|
Out |
|
String
|
The template name. |
ASDSpecStructuralView.SetProjectionPlane()
ASDSpecStructuralView.SetProjectionPlane function specifies the projection
plane info to the view's specification based on the iOriginMode.
Signature
ASDSpecStructuralView.SetProjectionPlane(iOriginMode : Integer, iPointX : Real, iPointY : Real, iPointZ : Real, iFirstDirectionX : Real, iFirstDirectionY : Real, iFirstDirectionZ : Real, iSecondDirectionX : Real, iSecondDirectionY : Real, iSecondDirectionZ : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iOriginMode
|
In |
|
Integer
|
Supported Values:
- 0: Origin is the point provided to the
SetProjectionPlane() method.
- 1: Origin is the global (0,0,0).
- 2: Origin is the global (0,0,0) projected on the
plane.
|
iPointX
|
In |
|
Real
|
X coordinate of the Origin.
|
iPointY
|
In |
|
Real
|
Y coordinate of the Origin.
|
iPointZ
|
In |
|
Real
|
Z coordinate of the Origin.
|
iFirstDirectionX
|
In |
|
Real
|
X coordinate of the First Direction.
|
iFirstDirectionY
|
In |
|
Real
|
Y coordinate of the First Direction.
|
iFirstDirectionZ
|
In |
|
Real
|
Z coordinate of the First Direction.
|
iSecondDirectionX
|
In |
|
Real
|
X coordinate of the Second Direction.
|
iSecondDirectionY
|
In |
|
Real
|
Y coordinate of the Second Direction.
|
iSecondDirectionZ
|
In |
|
Real
|
Z coordinate of the Second Direction.
|
ASDSpecStructuralView.SetViewTemplate()
ASDSpecStructuralView.SetViewTemplate function specifies the provided
view template to the view's specification using the template name.
Note:
Suffix characters are supported for view template names.
Signature
ASDSpecStructuralView.SetViewTemplate(iViewTemplateName : String) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iViewTemplateName
|
In |
|
String
|
The template name. |
ASDSpecVerticalAlignmentView.GetStretch()
ASDSpecVerticalAlignmentView.GetStretch retrieves the stretch
value.
Signature
ASDSpecVerticalAlignmentView.GetStretch(oStretch : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oStretch |
Out |
|
Real |
- |
ASDSpecVerticalAlignmentView.SetStretch()
ASDSpecVerticalAlignmentView.SetStretch sets the stretch
value.
Signature
ASDSpecVerticalAlignmentView.SetStretch(iStretch : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iStretch |
In |
|
Real |
- |
ASDSpecViewAbstract.CreateViewPositionAlignment()
ASDSpecViewAbstract.CreateViewPositionAlignment function creates a new spec
of view position alignment for this view's specification.
Signature
ASDSpecViewAbstract.CreateViewPositionAlignment(oViewPositionSpec : ASDSpecViewPositionAlignment) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oViewPositionSpec
|
Out |
|
ASDSpecViewPositionAlignment |
The SpecViewPositionalAlignment created for
this view. |
ASDSpecViewAbstract.GetParentSheet()
ASDSpecViewAbstractGetParentSheet function returns the parent sheet stored in
the ASDSpecViewAbstract object.
Signature
ASDSpecViewAbstract.GetParentSheet(oParentSheet : DrwSheet) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oParentSheet
|
Out |
|
DrwSheet |
The parent sheet. |
ASDSpecViewAbstract.GetViewAxisPosition()
ASDSpecViewAbstractGetViewAxisPosition function returns the view axis
position stored in the view's specification.
Signature
ASDSpecViewAbstract.GetViewAxisPosition(oX : Real, oY : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oX
|
Out |
|
Real
|
X coordinate of the view axis position.
|
oY
|
Out |
|
Real
|
Y coordinate of the view axis position.
|
ASDSpecViewAbstract.GetViewPositionAlignment()
ASDSpecViewAbstract.GetViewPositionAlignment function gets the spec of view
position alignment stored on this view's specification.
Signature
ASDSpecViewAbstract.GetViewPositionAlignment(oViewPositionSpec : ASDSpecViewPositionAlignment) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oViewPositionSpec
|
Out |
|
ASDSpecViewPositionAlignment |
The SpecViewPositionalAlignment stored on this
view. |
ASDSpecViewAbstract.SetViewAxisPosition()
ASDSpecViewAbstractSetViewAxisPosition function specifies a view axis
position to the view's specification.
Signature
ASDSpecViewAbstract.SetViewAxisPosition(iX : Real, iY : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iX
|
In |
|
Real
|
X coordinate of the view axis position.
|
iY
|
In |
|
Real
|
Y coordinate of the view axis position.
|
ASDSpecViewBox.GetFarLimit()
ASDSpecViewBoxGetFarLimit function gets the Far Limits from the ViewBox
specification.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oLimit
|
Out |
|
Integer
|
Supported Integer Values:
- 0: IncludedObjects
- 1: ViewLinks
|
ASDSpecViewBox.GetFarOffset()
ASDSpecViewBoxGetFarOffset function gets the Far Offset from the ViewBox
specification.
Signature
ASDSpecViewBox.GetFarOffset(oOffset : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oOffset
|
Out |
|
Real
|
The default offset is 0mm. |
ASDSpecViewBox.GetNearLimit()
ASDSpecViewBox.GetNearLimit function gets the Near Limits from the ViewBox
specification.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oLimit
|
Out |
|
Integer
|
Supported Integer Values:
- 0: IncludedObjects
- 1: ViewLinks
|
ASDSpecViewBox.GetNearOffset()
ASDSpecViewBox.GetNearOffset function gets the Near Offset from the ViewBox
specification.
Signature
ASDSpecViewBox.GetNearOffset(oOffset : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oOffset
|
Out |
|
Real
|
The default offset is 0mm. |
ASDSpecViewBox.GetObjects()
ASDSpecViewBox.GetObjects function gets the Objects from the ViewBox
specification. (Only Product Occurrences are supported.)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oListObjects
|
Out |
|
List
|
List of Objects included in the box. Only
Product Occurrences are supported. |
oKeepLinks
|
Out |
|
Boolean
|
A boolean flag to tell if the box must keep a persistent link
on the objects.
|
ASDSpecViewBox.GetOperationType()
ASDSpecViewBox.GetOperationType function gets the Operation Type from the
ViewBox specification.
Signature
ASDSpecViewBox.GetOperationType(oOperationType : Integer) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oOperationType
|
Out |
|
Integer
|
Supported Integer Values:
- 0: IntersectionFilter
- 1: FullyInsideFilter
- 2: 3DClipping
|
ASDSpecViewBox.GetOrientationMode()
ASDSpecViewBox.GetOrientationMode function gets the Orientation Mode from the
ViewBox specification.
Signature
ASDSpecViewBox.GetOrientationMode(oOrientationMode : Integer) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oOrientationMode
|
Out |
|
Integer
|
Supported Integer Values:
|
ASDSpecViewBox.GetSideLimits()
ASDSpecViewBox.GetSideLimits function gets the Side Limits from the ViewBox
specification.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oLimit
|
Out |
|
Integer
|
Supported Integer Values:
- 0: IncludedObjects
- 1: ViewLinks
|
ASDSpecViewBox.GetSideOffsets()
ASDSpecViewBox.GetSideOffsets function gets the Side Offsets from the ViewBox
specification.
Signature
ASDSpecViewBox.GetSideOffsets(oOffset : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oOffset
|
Out |
|
Real
|
The default offset is 0mm. |
ASDSpecViewBox.SetFarLimit()
ASDSpecViewBox.SetFarLimit function specifies the Far Limits to the ViewBox
specification.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iLimit
|
In |
|
Integer
|
Supported Integer Values:
- 0: IncludedObjects
- 1: ViewLinks
|
ASDSpecViewBox.SetFarOffset()
ASDSpecViewBox.SetFarOffset function specifies the Far Offset to the ViewBox
specification.
Signature
ASDSpecViewBox.SetFarOffset(iOffset : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iOffset
|
In |
|
Real
|
The default offset is 0mm. |
ASDSpecViewBox.SetNearLimit()
ASDSpecViewBox.SetNearLimit function sets Near Limits to the ViewBox
specification.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iLimit
|
In |
|
Integer
|
Supported Integer Values:
- 0: IncludedObjects
- 1: ViewLinks
|
ASDSpecViewBox.SetNearOffset()
ASDSpecViewBox.SetNearOffset function sets Near Offset to the ViewBox
specification.
Signature
ASDSpecViewBox.SetNearOffset(iOffset : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iOffset
|
In |
|
Real
|
The default offset is 0mm. |
ASDSpecViewBox.SetObjects()
ASDSpecViewBox.SetObjects function specifies objects to the ViewBox
specification. (Only Product Occurrences are supported).
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iListObjects
|
In |
|
List
|
List of Objects included in the box. Only
Product Occurrences are supported. |
iKeepLinks
|
In |
|
Boolean
|
A boolean flag to tell if the box must keep a
persistent link on the objects. |
ASDSpecViewBox.SetOperationType()
ASDSpecViewBox.SetOperationType function specifies Operation Type to the
ViewBox specification.
Signature
ASDSpecViewBox.SetOperationType(iOperationType : Integer) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iOperationType
|
In |
|
Integer
|
Supported Integer Values:
- 0: IntersectionFilter
- 1: FullyInsideFilter
- 2: 3DClipping
|
ASDSpecViewBox.SetOrientationMode()
ASDSpecViewBox.SetOrientationMode function specifies Orientation Mode to the
ViewBox specification.
Signature
ASDSpecViewBox.SetOrientationMode(iOrientationMode : Integer) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iOrientationMode
|
In |
|
Integer
|
Supported Integer Values:
|
ASDSpecViewBox.SetSideLimits()
ASDSpecViewBox.SetSideLimits function specifies the Side Limits to the
ViewBox specification.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iLimit
|
In |
|
Integer
|
Supported Integer Values:
- 0: IncludedObjects
- 1: ViewLinks
|
ASDSpecViewBox.SetSideOffsets()
ASDSpecViewBox.SetSideOffsets function specifies Side Offsets to the ViewBox
specification.
Signature
ASDSpecViewBox.SetSideOffsets(iOffset : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iOffset
|
In |
|
Real
|
The default offset is 0mm. |
ASDSpecViewPositionAlignment.GetDirections()
ASDSpecViewPositionAlignment.GetDirections function gets the directions used
to the view alignment specification.
Signature
ASDSpecViewPositionAlignment.GetDirections(oFirstDir : Integer, oSecondDir : Integer) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oFirstDir
|
Out |
|
Integer
|
Supported Integer Values:
- 0: TopToBottom
- 1: BottomToTop
- 2: LeftToRight
- 3: RightToLeft
|
oSecondDir
|
Out |
|
Integer
|
Supported Integer Values:
- 0: TopToBottom
- 1: BottomToTop
- 2: LeftToRight
- 3: RightToLeft
|
ASDSpecViewPositionAlignment.GetSheetMargins()
ASDSpecViewPositionAlignment.GetSheetMargins function gets the sheet margins
used to the view the alignment specification.
Signature
ASDSpecViewPositionAlignment.GetSheetMargins(oMarginX : Real, oMarginY : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oMarginX
|
Out |
|
Real
|
The horizontal margin for the sheet.
|
oMarginY
|
Out |
|
Real
|
The vertical margin for the sheet.
|
ASDSpecViewPositionAlignment.GetStartAnchor()
ASDSpecViewPositionAlignment.GetStartAnchor function gets the start anchor of
the view alignment specification.
Signature
ASDSpecViewPositionAlignment.GetStartAnchor(oAnchor : Integer) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oAnchor
|
Out |
|
Integer
|
Supported Integer Values:
- 0: TopLeftOfSheet
- 1: TopRightOfSheet
- 2: BottomLeftOfSheet
- 3: BottomRightOfSheet
- 4: CenterOfSheet
|
ASDSpecViewPositionAlignment.GetViewOffsets()
ASDSpecViewPositionAlignment.GetViewOffsets function gets the view offsets
used to the view alignment specification.
Signature
ASDSpecViewPositionAlignment.GetViewOffsets(oOffsetX : Real, oOffsetY : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oOffsetX
|
Out |
|
Real
|
The horizontal offset.
|
oOffsetY
|
Out |
|
Real
|
The vertical offset.
|
ASDSpecViewPositionAlignment.GetViewSpaceAllocation()
ASDSpecViewPositionAlignment.GetViewSpaceAllocation function gets the percent
of the view on the sheet. This EKL method works only if SetStartAnchor method is put
to 4.
Signature
ASDSpecViewPositionAlignment.GetViewSpaceAllocation(double : Boolean, double : Boolean) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
ViewSpace
|
Out |
|
Double |
The percent of the view on the sheet.
|
ASDSpecViewPositionAlignment.SetDirections()
ASDSpecViewPositionAlignment.SetDirections function specifies the directions
used to the view the alignment specification. The default behavior is
TopToBottom/LeftToRight.
Only the combination TopToBottom / LeftToRight is supported for the moment.
Signature
ASDSpecViewPositionAlignment.SetDirections(iFirstDir : Integer, iSecondDir : Integer) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iFirstDir
|
In |
|
Integer
|
Supported Integer Values:
- 0: TopToBottom
- 1: BottomToTop
- 2: LeftToRight
- 3: RightToLeft
|
iSecondDir
|
In |
|
Integer
|
Supported Integer Values:
- 0: TopToBottom
- 1: BottomToTop
- 2: LeftToRight
- 3: RightToLeft
iFirstDir and iSecondDir cannot have the same values.
|
ASDSpecViewPositionAlignment.SetSheetMargins()
ASDSpecViewPositionAlignment.SetSheetMargins function specifies the sheet
margins used to the view the alignment specification. Default margins are of 0mm.
Signature
ASDSpecViewPositionAlignment.SetSheetMargins(iMarginX : Real, iMarginY : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iMarginX
|
In |
|
Real
|
The horizontal margin for the sheet.
|
iMarginY
|
In |
|
Real
|
The vertical margin for the sheet.
|
ASDSpecViewPositionAlignment.SetStartAnchor()
ASDSpecViewPositionAlignment.SetStartAnchor function specifies the start
anchor of the view alignment specification. You can centre a view using the
ASDSpecViewPositionAlignment.SetStartAnchor() method.
Signature
ASDSpecViewPositionAlignment.SetStartAnchor(iAnchor : Integer) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iAnchor
|
In |
|
Integer
|
Supported Integer Values:
- 0: TopLeftOfSheet
- 1: TopRightOfSheet
- 2: BottomLeftOfSheet
- 3: BottomRightOfSheet
- 4: CenterOfSheet
Default behavior: TopLeftOfSheet (taking into account the
potential sheet margin X and sheet margin Y).
|
ASDSpecViewPositionAlignment.SetViewOffsets()
ASDSpecViewPositionAlignment.SetViewOffsets function specifies the view
offsets used to the view alignment spec. Default offsets are 0mm.
Signature
ASDSpecViewPositionAlignment.SetViewOffsets(iOffsetX : Real, iOffsetY : Real) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iOffsetX
|
In |
|
Real
|
The horizontal offset.
|
iOffsetY
|
In |
|
Real
|
The vertical offset.
|
ASDSpecViewPositionAlignment.SetViewSizeMode()
ASDSpecViewPositionAlignment.SetViewSizeMode function specifies the modes
used to compute the view box.
Signature
ASDSpecViewPositionAlignment.SetViewSizeMode(iViewSizeMode : Integer) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iViewSizeMode
|
In |
|
Integer
|
0: default mode (based on 2D View frame)
1: all 2D geometry with 2D axis
2: all 2D geometry without 2D axis
|
ASDSpecViewPositionAlignment.SetViewSpaceAllocation()
ASDSpecViewPositionAlignment.SetViewSpaceAllocation function specify the
percent of the view on the sheet or the views are distributed equally on the sheet.
This EKL method works only if SetStartAnchor method is put to 4.
Signature
ASDSpecViewPositionAlignment.SetViewSpaceAllocation(double : Boolean, double : Boolean) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
ViewSpace
|
In |
|
Double |
The percent of the view on the sheet.
|
ASDStructuralView.IsAMasterElement()
ASDStructuralView.IsAMasterElement can be used to verify if a given
structural object is a primary element in the structural view.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
StructureObject
|
In |
|
Feature
|
Structure Object. Only Product Occurrences are supported.
|
oIsMaster
|
Out |
|
Boolean
|
Set to True if iStructureObject is primary, False otherwise.
|
Example
Let Result(Boolean)
Let IsMaster(Boolean)
Let StructurePanel(ProductOccurrence)
Let DftView(DrwView)
Let ASDDftView(ASDView)
Let ASDDftStructuralView(ASDStructuralView)
// Retrieve the ASD structural view from a drawing or sheet or from an input argument
set DftView = ...
if( NULL < DftView)
DftView-GetASDView(ASDDftView)
set ASDDftStructuralView = ASDDftView
// Retrieve the structure panel to test
set StructurePanel = ...
// Check if the structure panel is primary in the structural view
if( (StructurePanel < NULL) AND (ASDDftStructuralView < NULL))
Result = ASDDftStructuralView.IsAMasterElement(StructurePanel, IsMaster)
ASDVerticalAlignmentView.CreateOrReplaceBandTable()
ASDVerticalAlignmentView.CreateOrReplaceBandTable verifies the creation
or replacement of the band table.
Signature
ASDVerticalAlignmentView.CreateOrReplaceBandTable(Filter : String, DiscreetPointsSpacing : LENGTH]) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
Filter |
In |
|
String |
- |
DiscreetPointsSpacing |
In |
|
LENGTH |
- |
ReturnType
Boolean
ASDView.GetASDAnnotation
Example 1
"if (InputView.IsASortOf(\"DrwView\") AND Input.IsASortOf(\"AECAlignment2DVertical\"))
{
Let Result(Boolean)
Let strFilter(String)
Let DiscreetPointsSpacing(Length)
Let DftView(DrwView)
Let ASDDftView(ASDView)
Let ASDDftAlignmentView(ASDAlignmentView)
Let ASDDftVerticalAlignmentView(ASDVerticalAlignmentView)
// Retrieve the ASD Alignment view from an input argument
set DftView = ...
if( NULL <> DftView)
DftView->GetASDView(ASDDftView)
set ASDDftAlignmentView = ASDDftView
set ASDDftVerticalAlignmentView = ASDDftAlignmentView
strFilter = \"Table\"
DiscreetPointsSpacing = 20
Result = ASDDftVerticalAlignmentView.CreateOrReplaceBandTable(strFilter, DiscreetPointsSpacing)
}
Example 2
if (InputView.IsASortOf(\"DrwView\") AND Input.IsASortOf(\"AECAlignment2DVertical\"))
{
Let Result(Boolean)
Let strFilter(String)
Let DftView(DrwView)
Let ASDDftView(ASDView)
Let ASDDftAlignmentView(ASDAlignmentView)
Let ASDDftVerticalAlignmentView(ASDVerticalAlignmentView)
// Retrieve the ASD Alignment view from an input argument
set DftView = ...
if( NULL <> DftView)
DftView->GetASDView(ASDDftView)
set ASDDftAlignmentView = ASDDftView
set ASDDftVerticalAlignmentView = ASDDftAlignmentView
strFilter = \"Table\"
Result = ASDDftVerticalAlignmentView.CreateOrReplaceBandTable(strFilter)
}";
ASDView.GetASDAnnotation()
ASDView.GetASDAnnotation retrieves all the associated
annotations.
Signature
ASDView.GetASDAnnotation(oListASDAnnotation : List) : Boolean
Arguments
| Name |
Input/Output |
Required |
Type |
Comment |
| oListASDAnnotation |
Out |
|
List |
The list of all ASD Annotation retrieved on view |
ASDView.GetViewBoxes()
ASDView.GetViewBoxes retrieves the view boxes from an ASDView.
Signature
ASDView.GetViewBoxes(oListViewBoxes : List) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oListViewBoxes
|
Out |
|
List
|
The list of ASDBox in the view. |
|