I have sets of code that I use in every program. I wanted to make my life easier so I compiled it in a script and attached it to a custom toolbar. All of the code works fine except for Wrist Speed. Even if I export just the Wrist Speed code to a script, it fails to execute the script and gives me this error...
"Runtime Error on line: 15 - Object variable or With block variable not set"
It's not like I wrote the script myself, this is what PC-DMIS wrote during export and it still doesnt work. It seems to have a problem with the (WRIST_SPEED, True) line. If I change it to MOVE_SPEED instead, it works and throws a movespeed line in the edit window. Has anyone replicated this bug or figured out a workaround?
Thanks again everyone.
PC-DMIS 2017 R2
Set DmisCommand = DmisCommands.Add(WRIST_SPEED,True)
DmisCommand.Marked = True
'Set Wrist Speed = 100
Retval = DmisCommand.PutText ("100", F_MOVESPEED, 0)
"Runtime Error on line: 15 - Object variable or With block variable not set"
It's not like I wrote the script myself, this is what PC-DMIS wrote during export and it still doesnt work. It seems to have a problem with the (WRIST_SPEED, True) line. If I change it to MOVE_SPEED instead, it works and throws a movespeed line in the edit window. Has anyone replicated this bug or figured out a workaround?
Thanks again everyone.
PC-DMIS 2017 R2
Set DmisCommand = DmisCommands.Add(WRIST_SPEED,True)
DmisCommand.Marked = True
'Set Wrist Speed = 100
Retval = DmisCommand.PutText ("100", F_MOVESPEED, 0)
Comment