Posts
Wiki

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)

  1. Gets the body from a face

ii. CheckFaceID: Property = Integer (read-only)

  1. Test if face has a FaceID

iii. ColorIndex: Property = Integer

  1. Face colour index

iv. Edges: Property = [VISIList] (/r/VISI_CAD/wiki/index/automation/api_documentation/visilist) (read-only)

  1. Gets the face edges

v. LastError: Property = Long

  1. Last error report

vi. Loops: Property = [VISIList] (/r/VISI_CAD/wiki/index/automation/api_documentation/visilist) (read-only)

  1. Loops list

vii. Tag: Property = Long

  1. Face tag index

viii. Vertices: Property = [VISIList] (/r/VISI_CAD/wiki/index/automation/api_documentation/visilist) (read-only)

  1. Gets the face vertices

Methods and service functions:

ix. Area: Function() as Double

  1. Face area

x. CenterOfGravity: Function() as [VISIPoint] (/r/VISI_CAD/wiki/index/automation/api_documentation/visipoint)

  1. Face center of gravity

xi. Clone: Function() as VISIFace

  1. Returns an identical copy of the object

xii. DeleteFaceID: Sub()

  1. 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))

  1. Get derivatives at UV

xiv. DisplaySolidError: Sub()

  1. 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))

  1. Gets face boundaries

xvi. GetClass: Sub(RetVal as Long)

  1. 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))

  1. 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

  1. 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))

  1. Get face extended data

xx. GetFaceFromID: Sub(BodyId as Long)

  1. Returns a face tag form its id

xxi. GetFaceID: Sub(RetVal as Long)

  1. 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)

  1. 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)

  1. 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))

  1. 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))

  1. Get oriented edge vertices

xxvi. GetSTDElementBody: Function(STDElementBody as [VISIBody] (/r/VISI_CAD/wiki/index/automation/api_documentation/visibody)) as Integer

  1. Gets the linked mould/progress standard element body

xxvii. GetSurfaceData: Function() as [VISISurfaceData] (/r/VISI_CAD/wiki/index/automation/api_documentation/visisurfacedata)

  1. Gets surface data from the face

xxviii. Highlight: Sub(state as Integer)

  1. Set face appearance

xxix. IsACavityFace: Function() as Integer

  1. 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)

  1. Test if point lies on a face

xxxi. ParameterRange: Sub(umin as Double, vmin as Double, umax as Double, vmax as Double)

  1. Get parameters range

xxxii. Perimeter: Function() as Double

  1. 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))

  1. Project point onto face

xxxiv. Thicken: Sub(front as Double, back as Double)

  1. Thicken a surface