Submitted by carlo.daristotile on Mon, 12/01/2014 - 07:02
Forums:
Hello,
In Journal vb.NET , Anybody know how to get the
"NX Version" , "NX Phase" , and "NX Patch" ?
Thanks
Hello,
In Journal vb.NET , Anybody know how to get the
"NX Version" , "NX Phase" , and "NX Patch" ?
Thanks
re: NX version
There are a few threads at the GTAC forum on this topic:
http://community.plm.automation.siemens.com/t5/NX-Languages/NX-Version-t...
http://community.plm.automation.siemens.com/t5/NX-Languages/NX-Version-t...
The GTAC links lead to
The GTAC links lead to examples of sysInfo, which isn't useful for getting the NX version or patch. I offer the following solution; make a wrapper for env_print:
Imports System
Module Module1
Sub Main()
Dim p As New Process()
p.StartInfo.FileName = "C:\Program Files\Siemens\NX 10.0\UGII\env_print.exe"
p.StartInfo.Arguments = "-m"
p.StartInfo.UseShellExecute = False
p.StartInfo.RedirectStandardOutput = True
p.Start()
Dim result() As String = p.StandardOutput.ReadToEnd.Split(",")
p.WaitForExit()
MsgBox(result(0))
End Sub
End Module