C# Class BuildingCoder.CmdImportsInFamilies

Inheritance: IExternalCommand
Afficher le fichier Open project: jeremytammik/the_building_coder_samples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

ExecuteWithoutRecursion() public méthode

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
Résultat System.Result

ListImportsAndSearchForMore() public méthode

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
Résultat void