Revit 2025 API
Family |
The globally unique identifier
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public Guid GUID { get; }
Public ReadOnly Property GUID As Guid Get
public: property Guid GUID { Guid get (); }
member GUID : Guid with get
Property Value
Guid
Exception | Condition |
---|---|
InvalidOperationException | Thrown when the parameter is not a shared parameter. |

foreach (FamilyParameter familyParam in familyDoc.FamilyManager.Parameters) { string familyParamName = familyParam.Definition.Name; try { Guid guid = familyParam.GUID; TaskDialog.Show("Revit",familyParamName + " is shared. Guid is " + guid); } catch (System.Exception) { TaskDialog.Show("Revit",familyParamName + " is NOT shared"); } }
For Each familyParam As FamilyParameter In familyDoc.FamilyManager.Parameters Dim familyParamName As String = familyParam.Definition.Name Try Dim guid As Guid = familyParam.GUID TaskDialog.Show("Revit", familyParamName & " is shared. Guid is " & Convert.ToString(guid)) Catch generatedExceptionName As System.Exception TaskDialog.Show("Revit", familyParamName & " is NOT shared") End Try
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