C# Class Revit.SDK.Samples.FrameBuilder.CS.FrameTypesMgr

data manager take charge of FamilySymbol object in current document
Mostrar archivo Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
AddSymbol ( Autodesk framingSymbol ) : bool

add one FamilySymbol object to the lists

ContainsSymbolName ( string symbolName ) : bool

inquire whether the FamilySymbol's Name already exists in the list

DeleteSymbol ( FamilySymbol symbol ) : bool
DuplicateSymbol ( ElementType framingSymbol, string symbolName ) : FamilySymbol

duplicate one FamilySymbol and add to lists

FrameTypesMgr ( ExternalCommandData commandData ) : System

constructor

GenerateSymbolName ( string symbolName ) : string

generate a new FamilySymbol's Name according to given name

Private Methods

Method Description
FrameTypesMgr ( ) : System

constructor without parameters is forbidden

Method Details

AddSymbol() public method

add one FamilySymbol object to the lists
public AddSymbol ( Autodesk framingSymbol ) : bool
framingSymbol Autodesk
return bool

ContainsSymbolName() public method

inquire whether the FamilySymbol's Name already exists in the list
public ContainsSymbolName ( string symbolName ) : bool
symbolName string
return bool

DeleteSymbol() public method

public DeleteSymbol ( FamilySymbol symbol ) : bool
symbol FamilySymbol FamilySymbol to be deleted
return bool

DuplicateSymbol() public method

duplicate one FamilySymbol and add to lists
public DuplicateSymbol ( ElementType framingSymbol, string symbolName ) : FamilySymbol
framingSymbol ElementType FamilySymbol to be copied
symbolName string duplicate FamilySymbol's Name
return FamilySymbol

FrameTypesMgr() public method

constructor
public FrameTypesMgr ( ExternalCommandData commandData ) : System
commandData ExternalCommandData
return System

GenerateSymbolName() public method

generate a new FamilySymbol's Name according to given name
public GenerateSymbolName ( string symbolName ) : string
symbolName string original name
return string