Hello Guest it is March 28, 2024, 09:36:07 AM

Author Topic: mcMasterModule question  (Read 3039 times)

0 Members and 1 Guest are viewing this topic.

Re: mcMasterModule question
« Reply #10 on: June 29, 2018, 04:54:15 PM »
Your SafeZ value is saved in the machine.ini file in your profile's directory.  If your search the file and don't find it then it has never been created.  You can also check by going to Configure->Plugins->Regfile and see it there, where you created it, or, 'Diagnostic->RegFile' and see it's current value if it exists.

Sorry, that's all got.
Re: mcMasterModule question
« Reply #11 on: June 29, 2018, 05:07:11 PM »
I just confirmed that scr.GetProperty is not working at all.


        scr.SetProperty("droToolChangePosZ", "Value",  "1")
   val = scr.GetProperty("droToolChangePosZ", "Value")

always returns "". they are in the same function as a test. DRO value on screen changes as it should. retrieving it, fails.

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: mcMasterModule question
« Reply #12 on: July 10, 2018, 06:17:40 PM »
Try checing the return code of the scr API call. 

val, rc = scr.GetProperty("droToolChangePosZ", "Value")

What is the value of rc?  It will be one of:

SERROR_NOERROR                       0
SERROR_API_INIT                       -1
SERROR_CONTROL_NOT_FOUND   -2
SERROR_PROPERTY_NOT_FOUND  -3
SERROR_PAGE_NOT_FOUND         -4
SERROR_INVALID_PARAM             -5
SERROR_FUNCTION_NOT_FOUND  -6
SERROR_IPC_NOT_READY            -99

Steve