SilverScreen Solid Modeler

BLOCK_NODE methods

BLOCK_NODE methods

Previous topic Next topic  

BLOCK_NODE methods

Previous topic Next topic JavaScript is required for the print function  

 

SilverSharpAPI

 

BLOCK_NODE(BLOCK_NODE rhs)

BLOCK_NODE(string block_path);

 

BLOCK_NODE rhs;         // A SilverSharp.BLOCK_NODE object

string     block_path;  // A System.String object

 

 




Synopsis

using SilverSharp;

 

The BLOCK_NODE constructors create and initialize a SilverSharp.BLOCK_NODE object. The first form makes a shallow copy of another SilverSharp.BLOCK_NODE object. The second form creates a SilverSharp.BLOCK_NODE from a path to a block entity.

 

 

Parameters

rhs is a SilverSharp.BLOCK_NODE object from which a shallow copy will be made.

 

block_path is a path to a SilverScreen block primitive.

 

 

Return Value

BLOCK_NODE returns a SilverSharp.BLOCK_NODE object.

 

 

Remarks

If block_path specifies an invalid path, then the inherited IsEmpty method will return true.

 

 

See Also

BLOCK_NODE, Entity Types

 

 

Example

The following code shows how to construct a SilverSharp.BLOCK_NODE object.

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 BLOCK_NODE blk = new BLOCK_NODE("block \\walls\\wall1");

 

 if ( BOS_NODE.IsEmpty(blk) )

    return;