SilverScreen Solid Modeler

BLOCK_NODE

BLOCK_NODE

Previous topic Next topic  

BLOCK_NODE

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

SilverSharp.BLOCK_NODE

 

Structure

A SilverSharp.BLOCK_NODE is an entity-level data type that is used to store information about SilverScreen blocks.

 

 

 

C# Code

 

 class BLOCK_NODE sealed : BOS_NODE

    {

    BLOCK_NODE(BLOCK_NODE rhs);

    BLOCK_NODE(string block_path);

 

    property BOS_NODE    first_bos     { get; }

    property TAG_NODE    first_tag     { get; }

    property SCHEMA_NODE first_schema  { get; }

 

    property TagList     Tags     { get; }

    property BosList     Children { get; }

    property BosList     Parents  { get; }

    property SchemaList  Schemas  { get; }

       

    BOS_NODE FindChild(string name);              

    };

 

 

 

Properties

The following read-only properties mimic the purpose of their counter-parts in the SilverC BLOCK_NODE:

 

Member

Description

first_bos

A reference to the first child entity of the block. SilverSharp programmers may prefer using the Children enumerator

first_tag

A reference to the first TAG_NODE of the block. SilverSharp programmers may prefer using the Tags enumerator.

first_schema

A reference to the first SCHEMA_NODE of the block. SilverSharp programmers may prefer using the Schemas enumerator.

 

The following read-only properties extend BLOCK_NODE for SilverSharp:

 

Name

Description

Tags

Enumerates all TAG_NODE objects belonging to the block entity

Children

Enumerates all BOS_NODE entities belonging to the block entity

Parents

Enumerates all BOS_NODE block entities that contain the block entity

Schemas

Enumerates all SCHEMA_NODE objects belonging to the block entity

 

 

Methods

Name

Description

BLOCK_NODE

Constructors to initialize the object

FindChild

Locates an immediate child of the block by name

 

 

Remarks

A SilverSharp.BLOCK_NODE inherits from a SilverSharp.BOS_NODE and therefore includes those properties and methods as well; for instance, Path, Type, and bits1 are inherited properties of a SilverSharp.BOS_NODE.

 

Note: A SilverSharp.BLOCK_NODE is a SilverSharp.BOS_NODE, but the reverse is not true.

 

 

See Also

SilverC BLOCK_NODE, Entity Types, TAG_NODE, SCHEMA_NODE