SilverScreen Solid Modeler

BosList.FromChildren method

BosList.FromChildren method

Previous topic Next topic  

BosList.FromChildren method

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

public static BosList FromChildren(string block_path)

public static BosList FromChildren(BLOCK_NODE block)

 

string block_path;   // A System.String

BLOCK_NODE block;    // A SilverSharp.BLOCK_NODE

 

 




Synopsis

The FromChildren methods return a BosList class that will enumerate all of the children of a block.

 

 

Parameters

block_path is a string that is a SilverScreen path to a block entity

block is a SilverSharp.BLOCK_NODE whose children are to be retrieved

 

 

Return Value

FromChildren returns a BosList class

 

 

Remarks

This function retrieves only the immediate children of a block entity. In the familial parlance, it will not retrieve grand children.

 

 

See Also

BosList, FromAncestors, FromDescendants

 

 

Example

To visit all of the children of a block entity, do this:

C# Code

 

 using SilverSharp;

 

 . . .

 

 BosList bl = BosList.FromChildren("\\assembly\\a1\\a2\\claw");

   

 foreach ( BOS_NODE bos in bl )

    {

    VisitOneBos(bos);

    }