SilverScreen Solid Modeler

BosBits2

BosBits2

Previous topic Next topic  

BosBits2

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

BosBits2

 

Structure

BosBits2 is a bit-flag enumeration used by the SilverSharp.BOS_NODE object.

 

C# Code

   

  enum BosBits2

     {

     BITS_ANNOTATE      = 0X0001,

     BITS_VISI_SAVE     = 0X0002,

     BITS_SPHERE        = 0x0004,

     BITS_PRISM         = 0x0008,

 

     BITS_CYLINDER      = 0X0010,

     BITS_CONE          = 0X0020,

     BITS_TRUNCONE      = 0X0040,

     THE_SOLID_BITS     = 0x007C,

 

     BITS_PATTERN_COLOR = 0X0400,

 

     BITS_TEMPORARY1    = 0X1000,

     BITS_BOS_UNUSED    = 0X2000,

     BITS_SOLID         = 0X4000,

     };

 

 

 

Members

See the bits2 member of the BOS_NODE entity structure for an explanation of the BosBits2 symbolic names.

 

 

See Also

BOS_NODE

 

Example

The following code will prompt for an object entity, then display a message if it is a solid model. Note that the SilverSharp.BOS_NODE property IsSolidObject provides easier access to the same information:

 

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.bits2 & BosBits2.BITS_SOLID )

       SC.error_message("The selected object is a solid model");

    }