C# Class BuildingCoder.CmdRemoveDwfLinks

Inheritance: IExternalCommand
Mostra file Open project: jeremytammik/the_building_coder_samples

Public Methods

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

Private Methods

Method Description
ElementCategoryContainsDwf ( Element e ) : bool

Return true if the given element category name contains the substring ".dwf".

RemoveDwfLinkUsingDelete ( Document doc ) : int

Useless non-functional attempt to remove all DWF links from the model and return the total number of deleted elements. This does not work! Instead, use RemoveDwfLinkUsingExternalFileUtils.

RemoveDwfLinkUsingExternalFileUtils ( Document doc ) : int

Remove DWF links from model and return the total number of deleted elements.

Unpin ( List ids, Document doc ) : int

Unpin all of the pinned elements in the list.

Method Details

Execute() public method

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

MiroReloadLinks() public method

public MiroReloadLinks ( IList fecLinkTypes ) : void
fecLinkTypes IList
return void