SilverScreen Solid Modeler

OBJECT_NODE methods

OBJECT_NODE methods

Previous topic Next topic  

OBJECT_NODE methods

Previous topic Next topic JavaScript is required for the print function  

 

SilverSharpAPI

 

OBJECT_NODE(OBJECT_NODE rhs)

OBJECT_NODE(string obj_path);

 

OBJECT_NODE rhs;       // A SilverSharp.OBJECT_NODE object

string      obj_path;  // A System.String object

 

 




Synopsis

using SilverSharp;

 

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

 

 

Parameters

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

 

obj_path is a path to a SilverScreen object entity

 

 

Return Value

OBJECT_NODE returns a SilverSharp.OBJECT_NODE object.

 

Remarks

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

 

 

See Also

OBJECT_NODE, Entity Types

 

 

Example

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

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 OBJECT_NODE obj = new OBJECT_NODE("object \\obj1");

 

 if ( BOS_NODE.IsEmpty(obj) )

    return;