SilverScreen Solid Modeler

SchemaList        

SchemaList        

Previous topic Next topic  

SchemaList        

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

SchemaList

 

 


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

 



C# Code

 

 public class SchemaList : System.Collections.IEnumerable

    {

    public static SchemaList FromBos(string bos_path);

    public static SchemaList FromBos(BOS_NODE bos);

    };

 

 

 

Members

Name

Description

FromBos

Enumerate every SCHEMA_NODE in a bos-level entity

 

 

Remarks

A SchemaList object is contained in many bos-level entities as a Schemas property.


See Also

BOS_NODE, SCHEMA_NODE

 


Example

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

C# Code

 

 using SilverSharp;

 

 . . .

 

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

 

 foreach ( SCHEMA_NODE schema in bos.Schemas )

    {

    VisitOneSchema(schema);

    }