Description
Sets the specified attribute of the face to 1.
Syntax
Function RFFace.SetAttribute(att As RFAttribute) As RFErrorCode
The SetAttribute syntax has these parts:
| Part | Description |
|---|---|
| att | [IN] RFAttribute Required. Attribute or bitwise expression to set to 1. |
Remarks
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)
' Attribute setting
Dim att1 As RFAttribute
' Set a new attribute
att1 = 2
rfErr = fcObj.SetAttribute(att1)
' Check if the attribute is to be set.
Dim bAttributed As Boolean
rfErr = fcObj.IsAttributed(att1, bAttributed)
' Retrieve the whole attribute.
rfErr = fcObj.GetAttribute(att1)
' Reset the attribute.
rfErr = fcObj.ResetAttribute(att1)