C# Class BuildingCoder.CmdProjectParameterGuids

Inheritance: IExternalCommand
Datei anzeigen Open project: jeremytammik/the_building_coder_samples

Public Methods

Method Description
Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result

Private Methods

Method Description
AddProjectParameterBinding ( Document doc, ProjectParameterData projectParameterData, Category category ) : bool

This method takes a category and information about a project parameter and adds a binding to the category for the parameter. It will throw an exception if the parameter is already bound to the desired category. It returns whether or not the API reports that it successfully bound the parameter to the desired category.

GetProjectParameterData ( Document doc ) : List

Returns a list of the objects containing references to the project parameter definitions

PopulateProjectParameterData ( Parameter parameter, ProjectParameterData projectParameterDataToFill ) : void

This method populates the appropriate values on a ProjectParameterData object with information from the given Parameter object.

Method Details

Execute() public method

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