SilverScreen Solid Modeler

BosList        

BosList        

Previous topic Next topic  

BosList        

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

BosList

 

 


The BosList class has methods that return enumerators useful for working with lists of BOS_NODEs. Because the BosList class supports the IEnumerable interface, the enumerators in a BosList work with the Visual-C# foreach statement.

 


C# Code

 

 public class BosList : System.Collections.IEnumerable

    {

    public static BosList EveryBosNode();

 

    public static BosList FromAncestors(string bos_path);

    public static BosList FromAncestors(BOS_NODE bos);

 

    public static BosList FromChildren(string block_path);

    public static BosList FromChildren(BLOCK_NODE blk);

 

    public static BosList FromDescendants(string block_path);

    public static BosList FromDescendants(BLOCK_NODE blk);

   

    public static BosList FromFont(FONT_NODE font);

 

    public static BosList FromGroup(string group_name);

    public static BosList FromQgroup();

    };

 

 

 

Methods

 

Name

Description

EveryBosNode

Enumerate every entity in the current SilverScreen drawing

FromAncestors

Enumerate all parent block entities of an entity

FromChildren

Enumerate every child of a block entity

FromDescendants

Enumerate every child, and also their descendants, of a block entity

FromFont

Enumerate all of the font characters of a FONT_NODE

FromGroup

Enumerate all of the entities in a named entity group

FromQgroup

Enumerate all of the entities in the current q-group

 

 

Remarks

Several BosList properties exist in the entity-level definitions in SilverSharp. For instance, every BOS_NODE has a Parent property that can be used to traverse the parents of an entity with foreach. Every BLOCK_NODE has a Children property that can be used to traverse the children of a block entity with foreach.

 

 

See Also

PrimList, BLOCK_NODE, BOS_NODE