SilverScreen Solid Modeler

BosBits1

BosBits1

Previous topic Next topic  

BosBits1

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

BosBits1

 

Structure

BosBits1 is a bit-flag enumeration used by the SilverSharp API routines that require entity bits1 flags values, and is also present in the SilverSharp.BOS_NODE object.

 

C# Code

   

 enum BosBits1

     {

     BITS_BLOCK,

     BITS_OBJECT,

     BITS_SYMBOL,

     BITS_VISIBLE,

     BITS_HIGHLOW,

     BITS_CENTER,

     BITS_AXIS,

     BITS_DETAIL,

     BITS_FONTSYMBOL,

     BITS_TEXT,

     BITS_CHAR,

     BITS_FORCE_WIDTH,

     BITS_FORCE_LINESTYLE,

     BITS_FORCE_COLOR,

     BITS_FORCE,

     };

 

 

 

Members

See the bits1 member of the BOS_NODE entity structure for an explanation of the BosBits1 symbolic names.

 

 

See Also

BOS_NODE, pick_entity, near_entity1

 

Example

The following code will prompt for an object entity, then display a message if the axis of rotation is set for the selected object.  Note that the SilverSharp version of pick_entity expects a BosBits1 enumeration as a parameter:

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 string object_path;

 

 if ( SC.pick_entity("Select an object",

                     BosBits1.BITS_OBJECT,

                     out object_path) )

    {

    BOS_NODE bos = SC.get_bos(object_path);

 

    if ( bos.bits1 & BosBits1.BITS_AXIS )

       SC.error_message("The axis of rotation is set");

    }