Table of Contents

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

familyType FamilyType

family type

familyParameter FamilyParameter

Autodesk.Revit.DB.FamilyParameter

Returns

double?

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

familyType FamilyType

family type

familyParameter FamilyParameter

Autodesk.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

familyType FamilyType

family type

familyParameter FamilyParameter

Autodesk.Revit.DB.FamilyParameter

Returns

string

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

familyType FamilyType

family type

familyParameter FamilyParameter

Autodesk.Revit.DB.FamilyParameter

Returns

string

GetParameterValue(Document, FamilyType, string)

get value of parameter family type

public static object? GetParameterValue(Document doc, FamilyType familyType, string parameterName)

Parameters

doc Document

family document

familyType FamilyType

family type

parameterName string

parameter 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

familyType FamilyType

family 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

familyType FamilyType

family type

Returns

string