Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: ballistic42 on February 15, 2016, 10:55:33 PM

Title: VB script for Tools?
Post by: ballistic42 on February 15, 2016, 10:55:33 PM
Hello I am trying to learn different types of scripting so I ran across this  script and would like to understand what it is doing.  If anyone would like to explain I am all ears and eyes.



For I = 1 To 12
ToolNum = GetUserDRO(ToolDRO + (I-1))
ToolOffset = GetToolParam(ToolNum,2)
SetUserDRO(LengthDRO + (I-1),ToolOffset)
If ToolOffset < 0.0001 Then
MsgBox("Tool Length not set for Tool # " & ToolNum)
End If
Next I