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.
The way to add a command is by selecting Insert -> Dimension -> Distance . This opens a wizard and we add a new dimesion variable or select a new dimension variable and set all the paameters and it shows in the commands.
when using VB.NET to read through the commands how to find if the Dimension was Distance or Location and so on ?
The way to add a command is by selecting Insert -> Dimension -> Distance . This opens a wizard and we add a new dimesion variable or select a new dimension variable and set all the paameters and it shows in the commands.
when using VB.NET to read through the commands how to find if the Dimension was Distance or Location and so on ?