C# Class BuildingCoder.CmdPurgeTextNoteTypes

Inheritance: IExternalCommand
Show file Open project: jeremytammik/the_building_coder_samples

Public Methods

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

Private Methods

Method Description
GetUnusedTextNoteTypes ( Document doc ) : ICollection

Return all unused text note types by collecting all existing types in the document and removing the ones that are used afterwards.

GetUnusedTextNoteTypesExcluding ( Document doc ) : ICollection

Return all unused text note types by first determining all text note types in use and then collecting all the others using an exclusion filter.

Method Details

Execute() public method

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