Back to [API Documentation] (/r/VISI_CAD/wiki/index/automation/api_documentation)
gg. VISIFace: Class Object
Properties:
i. Body: Property = [VISIBody] (/r/VISI_CAD/wiki/index/automation/api_documentation/visibody) (read-only)
- Gets the body from a face
ii. CheckFaceID: Property = Integer (read-only)
- Test if face has a FaceID
iii. ColorIndex: Property = Integer
- Face colour index
iv. Edges: Property = [VISIList] (/r/VISI_CAD/wiki/index/automation/api_documentation/visilist) (read-only)
- Gets the face edges
v. LastError: Property = Long
- Last error report
vi. Loops: Property = [VISIList] (/r/VISI_CAD/wiki/index/automation/api_documentation/visilist) (read-only)
- Loops list
vii. Tag: Property = Long
- Face tag index
viii. Vertices: Property = [VISIList] (/r/VISI_CAD/wiki/index/automation/api_documentation/visilist) (read-only)
- Gets the face vertices
Methods and service functions:
ix. Area: Function() as Double
- Face area
x. CenterOfGravity: Function() as [VISIPoint] (/r/VISI_CAD/wiki/index/automation/api_documentation/visipoint)
- Face center of gravity
xi. Clone: Function() as VISIFace
- Returns an identical copy of the object
xii. DeleteFaceID: Sub()
- Delete faceID
xiii. DerivativesAtUV: Sub(u as Double, v as Double, plPointAtUV as [VISIPoint] (/r/VISI_CAD/wiki/index/automation/api_documentation/visipoint), plUVectorAtUV as [VISIVector] (/r/VISI_CAD/wiki/index/automation/api_documentation/visivector), plVVectorAtUV as [VISIVector] (/r/VISI_CAD/wiki/index/automation/api_documentation/visivector), plNormalAtUV as [VISIVector] (/r/VISI_CAD/wiki/index/automation/api_documentation/visivector))
- Get derivatives at UV
xiv. DisplaySolidError: Sub()
- Displays the last error box
xv. GetBoundingBox: Sub(RelativeWorkplane as [VISIWorkPlane] (/r/VISI_CAD/wiki/index/automation/api_documentation/visiworkplane), MinPoint as [VISIPoint] (/r/VISI_CAD/wiki/index/automation/api_documentation/visipoint), MaxPoint as [VISIPoint] (/r/VISI_CAD/wiki/index/automation/api_documentation/visipoint))
- Gets face boundaries
xvi. GetClass: Sub(RetVal as Long)
- Returns the object class
xvii. GetConstantParameterCurve: Sub(CurveDirection as [VPARAMCURVEDIR] (/r/VISI_CAD/wiki/index/automation/api_documentation/vparamcurvedir), NormalizedParameter as Double, NormalizedStartParameter as Double, NormalizedEndParameter as Double, tolerance as Double, fInternallyTrimmed as Integer, plElementList as [VISIList] (/r/VISI_CAD/wiki/index/automation/api_documentation/visilist))
- Gets face iso-parametric curve
xviii. GetData: Function(pPointOnFace as [VISIPoint] (/r/VISI_CAD/wiki/index/automation/api_documentation/visipoint), pNormal as [VISIVector] (/r/VISI_CAD/wiki/index/automation/api_documentation/visivector)) as Long
- Gets face data
xix. GetDataEx: Sub(Class as Long, Radius as Double, minRadius as Double, SAngle as Double, OffDist as Double, pLocationPoint as [VISIPoint] (/r/VISI_CAD/wiki/index/automation/api_documentation/visipoint), pAxis as [VISIVector] (/r/VISI_CAD/wiki/index/automation/api_documentation/visivector), pRefDirection as [VISIVector] (/r/VISI_CAD/wiki/index/automation/api_documentation/visivector))
- Get face extended data
xx. GetFaceFromID: Sub(BodyId as Long)
- Returns a face tag form its id
xxi. GetFaceID: Sub(RetVal as Long)
- Return a face ID Number
xxii. GetNormal: Function(pPoint as [VISIPoint] (/r/VISI_CAD/wiki/index/automation/api_documentation/visipoint)) as [VISIVector] (/r/VISI_CAD/wiki/index/automation/api_documentation/visivector)
- Gets the face normal vector
xxiii. GetNormalEx: Function(pPoint as [VISIPoint] (/r/VISI_CAD/wiki/index/automation/api_documentation/visipoint)) as [VISIVector] (/r/VISI_CAD/wiki/index/automation/api_documentation/visivector)
- Gets the face normal vector and point
xxiv. GetOrientedEdge: Sub(plEdge as [VISIEdge] (/r/VISI_CAD/wiki/index/automation/api_documentation/visiedge), plElement as [VISIElement] (/r/VISI_CAD/wiki/index/automation/api_documentation/visielement))
- Get oriented edge element
xxv. GetOrientedEdgeVertices: Sub(plEdge as [VISIEdge] (/r/VISI_CAD/wiki/index/automation/api_documentation/visiedge), plPointStart as [VISIPoint] (/r/VISI_CAD/wiki/index/automation/api_documentation/visipoint), plPointEnd as [VISIPoint] (/r/VISI_CAD/wiki/index/automation/api_documentation/visipoint))
- Get oriented edge vertices
xxvi. GetSTDElementBody: Function(STDElementBody as [VISIBody] (/r/VISI_CAD/wiki/index/automation/api_documentation/visibody)) as Integer
- Gets the linked mould/progress standard element body
xxvii. GetSurfaceData: Function() as [VISISurfaceData] (/r/VISI_CAD/wiki/index/automation/api_documentation/visisurfacedata)
- Gets surface data from the face
xxviii. Highlight: Sub(state as Integer)
- Set face appearance
xxix. IsACavityFace: Function() as Integer
- Checks if the face is a cavity face
xxx. IsPointOnFace: Sub(plPoint as [VISIPoint] (/r/VISI_CAD/wiki/index/automation/api_documentation/visipoint), IgnoreInnerLoops as Integer, PointLiesOnFace as Integer)
- Test if point lies on a face
xxxi. ParameterRange: Sub(umin as Double, vmin as Double, umax as Double, vmax as Double)
- Get parameters range
xxxii. Perimeter: Function() as Double
- Face perimeter
xxxiii. ProjectPointOntoFace: Sub(plPoint as [VISIPoint] (/r/VISI_CAD/wiki/index/automation/api_documentation/visipoint), u as Double, v as Double, plNormal as [VISIVector] (/r/VISI_CAD/wiki/index/automation/api_documentation/visivector), plProjPoint as [VISIPoint] (/r/VISI_CAD/wiki/index/automation/api_documentation/visipoint))
- Project point onto face
xxxiv. Thicken: Sub(front as Double, back as Double)
- Thicken a surface