C# Class BuildingCoder.CmdCreateSharedParams

Inheritance: IExternalCommand
ファイルを表示 Open project: jeremytammik/the_building_coder_samples

Public Methods

Method Description
BindSharedParam ( Document doc, Category cat, string paramName, string grpName, ParameterType paramType, bool visible, bool instanceBinding ) : BindSharedParamResult
Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result

Private Methods

Method Description
CreateSharedParameter ( Document doc, Category cat, int nameSuffix, bool typeParameter ) : bool

Create a new shared parameter

GetCategory ( Document doc, BuiltInCategory target ) : Category

Method Details

BindSharedParam() public static method

public static BindSharedParam ( Document doc, Category cat, string paramName, string grpName, ParameterType paramType, bool visible, bool instanceBinding ) : BindSharedParamResult
doc Document
cat Category
paramName string
grpName string
paramType ParameterType
visible bool
instanceBinding bool
return BindSharedParamResult

Execute() public method

public Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
commandData ExternalCommandData
message string
elements ElementSet
return System.Result