C# Class RevitLookup.Test.SDKSamples.TypeSelector.TypeSelectorForm

Inheritance: System.Windows.Forms.Form
显示文件 Open project: jeremytammik/RevitLookup Class Usage Examples

Protected Properties

Property Type Description
m_app Autodesk.Revit.UI.UIApplication
m_curObj System.Object
m_curSymbolId int
m_symbolSet List
m_treeTypeNodes System.Collections.ArrayList
m_types System.Collections.ArrayList

Public Methods

Method Description
TypeSelectorForm ( Autodesk revitApp, ICollection elemSet ) : System

Protected Methods

Method Description
AddObjectsToTree ( IEnumerable objs ) : void
CommonInit ( IEnumerable objs ) : void
DisplayAvailableSymbols ( ) : void

The list of available Symbols. Need to just walk the list and print out a human read-able label

Dispose ( bool disposing ) : void

Clean up any resources being used.

GetAvailableSymbols ( System curObj ) : void

For a given Element, get all available Symbols that it could be set to. NOTE: since there is no virtual function to get and set Symbols for an element, we have to have a switch-like statement and treat each known type manually.

GetExistingNodeForType ( System objType ) : TreeNode

If we've already seen this type before, return the existing TreeNode object

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnTreeNodeSelect ( object sender, TreeViewEventArgs e ) : void

User selected a node of the tree. Just change what is displayed in the ListBox for the current node.

OnTypeChanged ( object sender, EventArgs e ) : void

User selected a different item in the ListBox, update the underlying Element to point to the new Symbol selected.

Method Details

AddObjectsToTree() protected method

protected AddObjectsToTree ( IEnumerable objs ) : void
objs IEnumerable
return void

CommonInit() protected method

protected CommonInit ( IEnumerable objs ) : void
objs IEnumerable
return void

DisplayAvailableSymbols() protected method

The list of available Symbols. Need to just walk the list and print out a human read-able label
protected DisplayAvailableSymbols ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GetAvailableSymbols() protected method

For a given Element, get all available Symbols that it could be set to. NOTE: since there is no virtual function to get and set Symbols for an element, we have to have a switch-like statement and treat each known type manually.
protected GetAvailableSymbols ( System curObj ) : void
curObj System The Element that was selected in the Tree
return void

GetExistingNodeForType() protected method

If we've already seen this type before, return the existing TreeNode object
protected GetExistingNodeForType ( System objType ) : TreeNode
objType System System.Type we're looking to find
return System.Windows.Forms.TreeNode

TypeSelectorForm() public method

public TypeSelectorForm ( Autodesk revitApp, ICollection elemSet ) : System
revitApp Autodesk
elemSet ICollection
return System

Property Details

m_app protected_oe property

protected Autodesk.Revit.UI.UIApplication m_app
return Autodesk.Revit.UI.UIApplication

m_curObj protected_oe property

protected Object,System m_curObj
return System.Object

m_curSymbolId protected_oe property

protected int m_curSymbolId
return int

m_symbolSet protected_oe property

protected List m_symbolSet
return List

m_treeTypeNodes protected_oe property

protected ArrayList,System.Collections m_treeTypeNodes
return System.Collections.ArrayList

m_types protected_oe property

protected ArrayList,System.Collections m_types
return System.Collections.ArrayList