C# Class Revit.SDK.Samples.AutoParameter.CS.FamilyParameterAssigner

add parameters(family parameters/shared parameters) to the opened family file the parameters are recorded in txt file following certain formats
Mostra file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
AddParameters ( ) : bool

add parameters to the family file

FamilyParameterAssigner ( Autodesk app, Document doc ) : System

constructor

LoadParametersFromFile ( ) : bool

load the family parameter file (if exists) and shared parameter file (if exists) only need to load once

Private Methods

Method Description
AddFamilyParameter ( ) : bool

add family parameter to the family

AddSharedParameter ( ) : bool

load shared parameters from shared parameter file and add them to family

LoadFamilyParameterFromFile ( bool &exist ) : bool

load family parameters from the text file

LoadSharedParameterFromFile ( bool &exist ) : bool

load family parameters from the text file

Method Details

AddParameters() public method

add parameters to the family file
public AddParameters ( ) : bool
return bool

FamilyParameterAssigner() public method

constructor
public FamilyParameterAssigner ( Autodesk app, Document doc ) : System
app Autodesk /// the active revit application ///
doc Document /// the family document which will have parameters added in ///
return System

LoadParametersFromFile() public method

load the family parameter file (if exists) and shared parameter file (if exists) only need to load once
public LoadParametersFromFile ( ) : bool
return bool