Class FamilyType
- Namespace
- OpenMEPRevit.Element.Family
- Assembly
- OpenMEPRevit.dll
The family type object provides read access to the values of family parameters for this type.
public class FamilyType
- Inheritance
-
FamilyType
- Inherited Members
Methods
AsDouble(FamilyType, FamilyParameter)
Provides access to the double precision number of the given family parameter.
public static double? AsDouble(FamilyType familyType, FamilyParameter familyParameter)
Parameters
familyTypeFamilyTypefamily type
familyParameterFamilyParameterAutodesk.Revit.DB.FamilyParameter
Returns
AsElementId(FamilyType, FamilyParameter)
Provides access to the Autodesk::Revit::DB::ElementId^ stored in the given family parameter.
public static Element AsElementId(FamilyType familyType, FamilyParameter familyParameter)
Parameters
familyTypeFamilyTypefamily type
familyParameterFamilyParameterAutodesk.Revit.DB.FamilyParameter
Returns
- Element
AsString(FamilyType, FamilyParameter)
Provides access to the string contents of the given family parameter.
public static string AsString(FamilyType familyType, FamilyParameter familyParameter)
Parameters
familyTypeFamilyTypefamily type
familyParameterFamilyParameterAutodesk.Revit.DB.FamilyParameter
Returns
AsValueString(FamilyType, FamilyParameter)
Provides access to value as a string with unit in the given family parameter.
public static string AsValueString(FamilyType familyType, FamilyParameter familyParameter)
Parameters
familyTypeFamilyTypefamily type
familyParameterFamilyParameterAutodesk.Revit.DB.FamilyParameter
Returns
GetParameterValue(Document, FamilyType, string)
get value of parameter family type
public static object? GetParameterValue(Document doc, FamilyType familyType, string parameterName)
Parameters
docDocumentfamily document
familyTypeFamilyTypefamily type
parameterNamestringparameter name
Returns
- object
family parameter
IsReadOnly(FamilyType)
Identifies if the object is read-only or modifiable.
[NodeCategory("Query")]
public static bool IsReadOnly(FamilyType familyType)
Parameters
familyTypeFamilyTypefamily type
Returns
- bool
If true, the object may not be modified. If false, the object's contents may be modified.
Name(FamilyType)
The name of the family type.
public static string Name(FamilyType familyType)
Parameters
familyTypeFamilyTypefamily type