Context Object Parameters
Parameter Name |
Type |
Read or Write |
Comments |
PhysicalX |
Length |
Read |
X coordinates in the absolute context. |
PhysicalY |
Length |
Read |
Y coordinates in the absolute context. |
PhysicalZ |
Length |
Read |
Z coordinates in the absolute context. |
Sample
/* Rule created by BZO 8/20/2018 */
let sName (STRING)
let facet2D (LogicalOccurrence)
let FacetInst (VPMInstance )
let x (Real)
let y (Real)
let z (Real)
set x = 0.0
set y = 0.0
set z = 0.0
set facet2D = ThisObject.Facet2D
set sName = (facet2D.Instance).PLM_ExternalID
if(sName == "Equ_1")
{
set x = 0.0
set y = -1.0
set z = 0.0
}
else if(sName == "Equ_2")
{
set x = 0.0
set y = 1.0
set z = 0.0
}
Parameters.SetAttributeReal("PhysicalX", x)
Parameters.SetAttributeReal("PhysicalY", y)
Parameters.SetAttributeReal("PhysicalZ", z)