This page contains reference documentation for the SelectNS function. This function allows you to select a NodeSelect object in the scene graph. A NodeSelect may be a single node, or it may contain nodes as well as sub-geometry.
int SelectNS( NodeSelect NodeSelectToSelect )
Function parameters are as follows:
Examples are as follows:
// Display properties for the members of selection set. Use Select to select members of the set.
Model.DeselectAll();
int selectedCount = Model.GetSelectCount();
for( int node = 0; node < selectedCount; ++node )
{
Node selNode = Model.GetSelectedNode( node ).GetNode();
if( selNode.IsDerived( CollectionNode ) )
{
CollectionNode collNode = (CollectionNode)selNode;
List selectBuffer = collNode.GetCollection();
int count = selectBuffer.GetCount();
for( int i = 0; i < count; ++i )
{
NodeSelect select = (NodeSelect)selectBuffer.Get( i );
Model.SelectNS( select.Clone() );
}
}
}
Application.ExecuteCommand( "Edit Commands", "EditDisplayProperties" );
For sample code: