by Robertspark » Thu Oct 20, 2016 1:25 pm
Below is an extract of all plugin functions
Can I suggest firstly that maybe cncDrive consider standard nomenclature for some of the parameter names.....
such as the following examples:
void Addbutton(bool isAS3, double x, double y, double w, double h, bool toggletype, bool blinktype, int picturenumber, int buttonnumber, int layernumber)
void AddUCCAM(bool isAS3, int fillcolor, int posX, int posY, int sizeX, int sizeY, int labelnumber, int layernumber)
would it be possible to go through the function descriptions within uccnc as a houskeeping task and just change some of the desicriptions to standard ones please?
(once done, never need to be done again, and as you're only editing the descriptions there should be no change of bugs to to the change)
Note: these are the plugin functions..... not all will work with macros and screensets, and some of the macro functions are also not plugin functions, such as:
AddStatusmessage
Getcurrenttool
Ismacrostopped
Question
TextQuestion
Loadpicture
Although I've not tested the theory..... if the function has "bool isAS3" as a parameter it should be able to be used within screensets.... such as : void Addbackground(bool isAS3, and Addcheckbox(bool isAS3
void Addbackground(bool isAS3, double x, double y, double w, double h, int picturenumber, int backgroundnumber, int layernumber)
void Addbutton(bool isAS3, double x, double y, double w, double h, bool toggletype, bool blinktype, int picturenumber, int buttonnumber, int layernumber)
void Addcheckbox(bool isAS3, string labeltext, string labelfont, int fontsize, int fontcolor, int posX, int posY, int boxnumber, int layernumber)
void Addcodeview(bool isAS3, string labeltext, string labelfont, string textalign, int fontsize, int fontcolor, int posX, int posY, int Width, int Height, int layernumber)
void Addcolorpick(bool isAS3, double x, double y, double w, double h, int LEDnumber, int layernumber)
void Addcombobox(bool isAS3, int posX, int posY, int Width, int fontsize, int fontcolor, int Numberofaxis, int labelnumber, int layernumber)
void Addcomboboxitem(bool isAS3, string val, int labelnumber)
void Addfield(bool isAS3, string labeltext, string labelfont, string textalign, int fontsize, int fontcolor, double posX, double posY, int intextboxwidth, string type, double min, double max, int labelnumber, int parentnumber)
void Addfill(bool isAS3, int fillcolor, int posX, int posY, int sizeX, int sizeY, double transparency, int labelnumber, int layernumber)
void Additemtolist(bool isAS3, string val, int labelnumber)
void Addlabel(bool isAS3, string labeltext, string labelfont, string textalign, int fontsize, int fontcolor, int posX, int posY, int layernumber)
void Addled(bool isAS3, double x, double y, double w, double h, int picturenumber, int LEDnumber, int layernumber)
int AddLinearMoveRel(int Axis, double Step, int StepCount, double Speed, bool Dir)
void Addlist(bool isAS3, string labelfont, string textalign, int fontsize, int fontcolor, int posX, int posY, int Width, int Height, int labelnumber, int layernumber)
void Addmdi(bool isAS3, string labeltext, string labelfont, string textalign, int fontsize, int fontcolor, int posX, int posY, int intextboxwidth, int labelnumber, int parentnumber)
void Addtab(bool isAS3, string labeltext, string labelfont, string textalign, int fontsize, int fontcolor, int posX, int posY, int labelwidth, int labelheight, int picturenumber, int labelnumber, int parentnumber)
void Addtoolpath(bool isAS3, int x, int y, int width, int height, int layer)
void AddUCCAM(bool isAS3, int fillcolor, int posX, int posY, int sizeX, int sizeY, int labelnumber, int layernumber)
int Buttonpress_event(int buttonnumber, bool onscreen) //Called when the user presses a button on the UCCNC GUI or if a Callbutton function is executed. //The int buttonnumber parameter is the ID of the caller button. // The bool onscreen parameter is true if the button was pressed on the GUI and is false if the Callbutton function was called.
void Callbutton(int buttonnumber)
void ChangeaxisDROvalue(int axisnumber, string val)
void Clearcomboboxitems(bool isAS3, int labelnumber)
void Clearlist(bool isAS3, int labelnumber)
void Clroutpin(int portnumber, int pinnumber)
void Code(string code)
void Codesync(string code)
int Configplugin(string pluginfilename)
int Configure_event() //Called from UCCNC when the user presses the Configuration button in the Plugin configuration menu. //Typically the plugin configuration window is shown to the user.
int Cyclethreadfinish_event()
int Cyclethreadstart_event()
void Disablejog(bool disable)
void Filterfieldtext(bool isAS3, string val, int labelnumber)
bool Get_event(string pluginfilename, Executer exec)
ushort[] GetAllModbusArray()
double GetABCXYZmachpos()
int Getanaloginput(int channel)
int Getanalogoutput(int channel)
double GetABCXYSpos()
bool Getbutton(int buttonumber)
bool Getbuttonstate(int buttonumber)
bool Getcheckboxstate(bool isAS3, int checkboxnumber)
long Getcodetotalruntimemsec()
int Getcolorpickercolor(bool isAS3, int labelnumber)
string Getcomboboxselection(bool isAS3, int labelnumber)
void GetDebugData(ref double D1, ref double D2, ref double D3, ref double D4, ref double D5, ref double D6, ref double D7, ref double D8, ref double D9, ref double D10)
string Getfield(bool isAS3, int fieldnumber)
double Getfielddouble(bool isAS3, int labelnumber)
int Getfieldint(bool isAS3, int labelnumber)
string Getgcodefilename()
bool GetLED(int LEDnumber)
int GetMaxLED()
int GetMaxVar()
bool GetModbusregister(int Registernumber, out ushort Value)
bool GetModbusregisters(int Startregister, int Registercount, out ushort[] Values)
string Getprofilename()
int Getselectedindexinlist(bool isAS3, int labelnumber)
double Getvar(int varnum)
void Init_event() //Called when the plugin is initialised. //The parameter is the Plugin interface object which contains all functions prototypes for calls and callbacks.
bool IsLoading()
bool IsMoving()
int JogOnSpeed(int Axis, bool Dir, double Speed)
void Loadfile(string filename)
int Loop_event() //Called in a loop with a 25Hz interval.
int MPGJogOff(int MPG)
void Pluginshowup(string Pluginfilename)
string Readkey(string section, string key, string defaultvalue)
void Resetswapaxis()
void selectlayer(bool isAS3, int layernumber)
void Sendallbuttonsup(bool isAS3)
void Setaxishomestate(int axis, bool Ishomed)
void Setcheckboxstate(bool isAS3, bool Ison, int Boxnumber)
void Setcolorpickercolor(bool isAS3, int theColor, int IDnumber)
void Setfield(bool isAS3, double val, int fieldnumber)
void Setfieldtext(bool isAS3, string val, int fieldnumber)
void SetLED(bool state, int LEDnumber)
bool SetModbusregister(int Registernumber, ushort Value)
bool SetModbusregisters(int Startregister, ushort[] Values)
void Setoutpin(int portnumber, int pinnumber)
int SetPictureData(Plugininterface.Entry.LaserPictureData _LaserPictureData, byte[][] BrightnessDataInput)
void Setvar(double value, int varnum)
int Showplugin(string pluginfilename)
int Showup_event() //Called when the Pluginshowup(string Pluginfilename); function is executed in the UCCNC.
int Shutdown_event() //Called when the UCCNC software is closing.
void Slaveaxis(int masteraxis, int slaveaxis)
void Startup_event() //Called from UCCNC when the plugin is loaded and started.
void Stop()
void StopWithDeccel()
void Swapaxis(int axis1, int axis2)
void Switchbutton(bool isAS3, bool Ison, int Buttonnumber)
void Updatecomboboxselection(bool isAS3, int selectedindex, int labelnumber)
void Validatefield(bool isAS3, int fieldnumber)
void Validatenewcomboboxitems(bool isAS3, int labelnumber)
void Wait(int milliseconds)
void Writekey(string section, string key, string value)