C# Class BuildingCoder.CmdImportsInFamilies

Inheritance: IExternalCommand
Exibir arquivo Open project: jeremytammik/the_building_coder_samples

Public Methods

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

Non-recursively list all import instances in all families used in the current project document.

ListImportsAndSearchForMore ( int recursionLevel, Document doc, Family>.Dictionary families ) : void

List all import instances in all the given families. Retrieve nested families and recursively search in these as well.

Private Methods

Method Description
GetFamilies ( Document doc ) : Family>.Dictionary

Retrieve all families used by the family instances and annotation symbols in the given document. Return a dictionary mapping the family name to the corresponding family 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

ExecuteWithoutRecursion() public method

Non-recursively list all import instances in all families used in the current project document.
public ExecuteWithoutRecursion ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
commandData ExternalCommandData
message string
elements ElementSet
return System.Result

ListImportsAndSearchForMore() public method

List all import instances in all the given families. Retrieve nested families and recursively search in these as well.
public ListImportsAndSearchForMore ( int recursionLevel, Document doc, Family>.Dictionary families ) : void
recursionLevel int
doc Document
families Family>.Dictionary
return void