SilverScreen Solid Modeler

TagList        

TagList        

Previous topic Next topic  

TagList        

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

TagList

 


A TagList enumerator is used to traverse a list of SilverSharp TAG_NODEs. Because the TagList class supports the IEnumerable interface, the enumerators in a TagList work with the Visual-C# foreach statement.

 



C# Code

 

 public ref class TagList : System::Collections::IEnumerable

    {

    public static TagList FromBos(BOS_NODE bos);

    public static TagList FromBos(string   bos_path);

    };

 

 

 

Members

Name

Description

FromBos

Enumerate every TAG_NODE in a bos-level entity

 


Remarks

TagList object is contained in many bos-level entities as a Tags property.

 


See Also

Enumerators, BOS_NODE, TAG_NODE


Example

The following code enumerates all of the Tags contained in a SilverSharp BOS_NODE:

C# Code

 

 using SilverSharp;

 

 . . .

 

 BOS_NODE bos = SC.get_bos("\\assembly\\a1\\a2\\claw\\claw2");

 

 foreach ( TAG_NODE tag in bos.Tags )

    {

    VisitOneTag(tag);

    }