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

Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: jeremytammik/RevitLookup Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode Description
TypeSelectorForm ( Autodesk revitApp, ICollection elemSet ) : System

Méthodes protégées

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

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

protected AddObjectsToTree ( IEnumerable objs ) : void
objs IEnumerable
Résultat void

CommonInit() protected méthode

protected CommonInit ( IEnumerable objs ) : void
objs IEnumerable
Résultat void

DisplayAvailableSymbols() protected méthode

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

Dispose() protected méthode

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

GetAvailableSymbols() protected méthode

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

GetExistingNodeForType() protected méthode

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
Résultat System.Windows.Forms.TreeNode

TypeSelectorForm() public méthode

public TypeSelectorForm ( Autodesk revitApp, ICollection elemSet ) : System
revitApp Autodesk
elemSet ICollection
Résultat System

Property Details

m_app protected_oe property

protected Autodesk.Revit.UI.UIApplication m_app
Résultat Autodesk.Revit.UI.UIApplication

m_curObj protected_oe property

protected Object,System m_curObj
Résultat System.Object

m_curSymbolId protected_oe property

protected int m_curSymbolId
Résultat int

m_symbolSet protected_oe property

protected List m_symbolSet
Résultat List

m_treeTypeNodes protected_oe property

protected ArrayList,System.Collections m_treeTypeNodes
Résultat System.Collections.ArrayList

m_types protected_oe property

protected ArrayList,System.Collections m_types
Résultat System.Collections.ArrayList