FamilyInstanceSymbol Property |
Returns or changes the FamilySymbol object that represents the type of the instance.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic FamilySymbol Symbol { get; set; }
Public Property Symbol As FamilySymbol
Get
Set
public:
property FamilySymbol^ Symbol {
FamilySymbol^ get ();
void set (FamilySymbol^ value);
}
member Symbol : FamilySymbol with get, set
Property Value
FamilySymbol
RemarksSetting this property will result in the type of the instance being changed. Related types
can be found by examining the Family to which the symbol belongs.
Examplepublic void GetInfo_FamilyInstance_Symbol(FamilyInstance familyInstance)
{
string message = "FamilyInstance symbol: ";
if (familyInstance.Symbol != null)
{
message += "\nFamilyInstance structural symbol name is : " + familyInstance.Symbol.Name;
familyInstance.Symbol.Name = "TestFamilyInstanceSymbolName";
message += "\nFamilyInstance structural symbol name after set is : " + familyInstance.Symbol.Name;
}
TaskDialog.Show("Revit",message);
}
Public Sub GetInfo_FamilyInstance_Symbol(familyInstance As FamilyInstance)
Dim message As String = "FamilyInstance symbol: "
If familyInstance.Symbol IsNot Nothing Then
message += vbLf & "FamilyInstance structural symbol name is : " & Convert.ToString(familyInstance.Symbol.Name)
familyInstance.Symbol.Name = "TestFamilyInstanceSymbolName"
message += vbLf & "FamilyInstance structural symbol name after set is : " & Convert.ToString(familyInstance.Symbol.Name)
End If
TaskDialog.Show("Revit", message)
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also