//This is the Constructor macro which executes once when the application gets loaded


//*****************************  CNC4PC block  *****************************
//*****************  rem Modified Nov/30/2022 by CNC4PC  *******************

string Z_Top = exec.Readkey("UserTextfields", "20001", "Z_Top");
double Z_Top_d = double.Parse(Z_Top);
AS3.Setfield(Z_Top_d, 20001);

string Z_min_height = exec.Readkey("UserTextfields", "20002", "Z_min_height");
double Z_min_height_d = double.Parse(Z_min_height);
AS3.Setfield(Z_min_height_d, 20002);

string Offset_Z = exec.Readkey("UserTextfields", "20003", "Offset_Z");
double Offset_Z_d = double.Parse(Offset_Z);
AS3.Setfield(Offset_Z_d, 20003);

string Probing_FR = exec.Readkey("UserTextfields", "20006", "Probing_FR");
double Probing_FR_d = double.Parse(Probing_FR);
AS3.Setfield(Probing_FR_d, 20006);

string Check_probe_disable = exec.Readkey("UserCheckboxes", "20006", "Check_probe_disable");
bool Check_probe_disable_b = Convert.ToBoolean(Check_probe_disable);
AS3.Setcheckboxstate(Check_probe_disable_b, 20006);

//***************************  End CNC4PC block  ****************************
