Dim app As PCDLRN.Application
Dim cmds As Object
Dim cmd As PCDLRN.Command
Dim part As PCDLRN.PartProgram
Dim data As PCDLRN.ReportData
Dim rWin As PCDLRN.ReportWindow
Dim nCommands As String = part.Commands.Count.ToString
Dim val As String = part.GetVariableValue("PLN1").StringValue.ToString
MessageBox.Show("Value is -- " & val & "--" & nCommands)
For Each cmd In cmds
'Dim assignName As Object = cmd.GetText(PCDLRN.ENUM_FIELD_TYPES.DEST_EXPR, 0)
'Console.WriteLine(assignName.ToString)
Console.WriteLine(cmd.TypeDescription.ToString & " " & cmd.Type & " " & cmd.GetFieldValue())
'Console.WriteLine(part.GetVariableValue(assignName).CommandValue.ToString)
Next
'rWin = part.ReportWindow
'data = rWin.Pages
'Dim dat As String = data.GetValue(PCDLRN.ENUM_FIELD_TYPES.AXIS_NOMINAL, 1107)
'MessageBox.Show(dat)
and above is the VB.NET code I am using to access CMM code. I want to get all the values inside ASSIGN/x=y commands eg: ASSIGN/V113=V52+","+V53+","+V54. Can anyone share code to get these values ? I am trying to use Command.GetFieldValue(PCDLRN ENUM FIELD TYPE, TYPE INDEX ) , I do not understand what are these two parameters inside the GetFieldValue method ? Any help will be appreciated.
Do note that using
PCDLRN.Application will start the version that's stored in the Registry at
HKEY_CLASSES_ROOT\PCDLRN.Application. If you have more than one installation of PC-DMIS on the computer, this Registry key will reflect the version that most lately was run with Administrator privileges, as this Registry key can't [normally] be written to by a 'normal' user. PC-DMIS tries to write this entry each time it is run, but only succeeds when having the Administrator privileges.
Do note that using
PCDLRN.Application will start the version that's stored in the Registry at
HKEY_CLASSES_ROOT\PCDLRN.Application. If you have more than one installation of PC-DMIS on the computer, this Registry key will reflect the version that most lately was run with Administrator privileges, as this Registry key can't [normally] be written to by a 'normal' user. PC-DMIS tries to write this entry each time it is run, but only succeeds when having the Administrator privileges.