Context Object Parameters
Parameter Name |
Type |
Read/Write |
Comments |
IndexSlider |
Integer |
Read |
Index of the pulling direction:
- 0: Main pulling direction
- n: nth secondary pulling direction
|
DraftAngle |
Integer |
Read |
Value of the draft angle |
SurfaceArea |
String |
Read |
Area of the faces |
ListAngles |
List |
Read |
Angles between the facets normal and the pulling
direction. |
Destination |
Integer |
Write |
- 1: CoreSide
- 2: CavitySide
- 3: OtherSide
- 4: NoDraftSide
- 5: UndercutSide
- 6: SliderSide
|
InfoMessage |
String |
Write |
Information message |
Sample
Let FaceArea(AREA)
Let FaceAnglesToPullingDirection(List)
Let CavitySide(Integer)
Let CoreSide(Integer)
Let OtherSide(Integer)
Let NoDraftSide(Integer)
Let UndercutSide(Integer)
Let SliderSide(Integer)
CavitySide = 1
CoreSide = 2
OtherSide = 3
NoDraftSide = 4
UndercutSide = 5
SliderSide = 6
set FaceAnglesToPullingDirection = Parameters->GetAttributeObject("ListAngles")
FaceArea = Parameters.GetAttributeReal("SurfaceArea")*1mm2
if(IndexSlider < 1)
{
/* This is the main pulling direction */
if(FaceArea < 1mm2) Parameters.SetAttributeInteger("Destination",1)}