SilverScreen Solid Modeler

GenericTypes

GenericTypes

Previous topic Next topic  

GenericTypes

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

GenericTypes

 

Structure

The GenericTypes enumeration provides a set of values for use by SilverSharp API routines that operate on generic data sets

 

C# Code

   

 enum GenericTypes

     {

     GN_DRW,

     GN_FNT,

     GN_DXF,

     GN_IGS,

     GN_EX,

     GN_SF,

     GN_ENV,

     GN_ANN,

     GN_SDF,

     GN_PIX,

     GN_MLB,

     GN_MODEL,

     GN_LIGHT,

     GN_IMODEL,

     GN_GROUP,

     GN_XLB,

     GN_NAMED_VIEWS,

     GN_SCREENS,

     GN_VARIABLES,

     GN_ABLOCKS,

     GN_WINDOW_ABLOCKS,

     GN_DWG,

     GN_PATTERN,

     GN_LINE_STYLE,

     GN_FILE,

     GN_FILE2,

     GN_MODEL2,

     GN_XLB_ENTRY,

     GN_FILE_NAME,

     GN_FNT_ENTRY,

     GN_PRP,

     GN_PRP_ENTRY,

     };

 

 

 

Members

See Generic Data Sets for an explanation of the GenericTypes symbolic names.

 

 

See Also

Generic Data Sets, prompt_generic, Enumerations

 

Example

The following code uses a GenericTypes enumeration with prompt_generic. Note that the SilverSharp version of prompt_generic expects a GenericTypes enumeration as a parameter:

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 string buf;

 

 if ( SC.prompt_generic("Select light source",

                        out buf,

                        GenericTypes.GN_LIGHT,

                        "" ) )

    SC.error_message("The selected light source is {0}", buf);

 else

    SC.error_message ("No light source selected");