RFFace.CalcMeanLengthOfEdges



Your Ad Here

Description

Calculates the average length of its three edges.

Syntax

Function RFFace.CalcMeanLengthOfEdges(pdLength As Double) As RFErrorCode

The CalcMeanLengthOfEdges syntax has these parts:

Part Description
pdLength [OUTDouble Required. Average length of three edges.

Sample

Dim rfErr As RapidForm.RFErrorCode
Dim fcObj As RapidForm.RFFace

    ' Assign the RFFace interface object
    Set fcObj = RapidForm.Face
    
    ' Pick a face
    Dim pickedID As RFEntityID
    rfErr = RapidForm.SelectTools.PickEntity(RF_PICK_FACE, 1, pickedID)
    
    ' If an error happens, exit the subroutine.
    If rfErr <> RF_SUCCESS Then
        MsgBox RapidForm.Application.GetErrorMessage(rfErr)
        Exit Sub
    End If
    
    rfErr = fcObj.SetID(pickedID)
    
    ' Calculate the mean length of 3 edges.
    Dim meanLen As Double
    rfErr = fcObj.CalcMeanLengthOfEdges(meanLen)

Return to Rapidform Index


Your Ad Here