FamilyParameterGUID Property |
The globally unique identifier
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic Guid GUID { get; }
Public ReadOnly Property GUID As Guid
Get
public:
property Guid GUID {
Guid get ();
}
member GUID : Guid with get
Property Value
Guid
Exceptions
Exampleforeach (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