EgtCAM5 :

- Migliorie SetUp.
- Migliorie simulazione.
This commit is contained in:
Emmanuele Sassi
2017-01-27 18:33:56 +00:00
parent 7747916f24
commit dffe9de64e
15 changed files with 493 additions and 327 deletions
+19
View File
@@ -263,6 +263,25 @@ Namespace EgtCAM5
Next
Next
End Sub)
' carico Lua che contiene le funzioni di attrezzaggio
EgtLuaExecFile(IniFile.m_sCurrMachScriptsDirPath & "\" & SETUP_LUA)
' creo lista TcPos
Dim nPosIndex As Integer = 1
Dim sTcPos As String = String.Empty
Dim nErr As Integer = 0
While nErr = 0
EgtLuaSetGlobIntVar("STU.INDEX", nPosIndex)
EgtLuaCallFunction("STU.GetTcPosFromPos")
' Leggo variabili
EgtLuaGetGlobStringVar("STU.TCPOS", sTcPos)
EgtLuaGetGlobIntVar("STU.ERR", nErr)
If nErr = 0 Then
ToolTreeViewItem.m_TcPosList.Add(sTcPos)
End If
nPosIndex += 1
End While
' Reset lua
EgtLuaResetGlobVar("STU")
End Sub