User Interface Controls

Several different UI control types are available to be utilized within the BobCAD Lua scripting engine when building your own dialogs.


The controls are typically defined as a table including the keys/values that define that type of control.  


Every control parameter table can contain the following keys:


  • ControlID – user defined string that will be used as a reference for changing the states and getting values from this control. The value can be any string, but must be unique for each dialog the control is utilized.
    • This key is technically optional, but must exist if you plan to change the state of the control or get any values from this control as the ControlID is the key for the return table of each dialog
  • IsVisible – initial visibility of the UI control. (Optional, default is true)
  • IsEnable – initial status of the control.  (Optional, default is true)
  • ControlType - The type of control that is being defined.  The list of supported user interface controls are defined below: