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.
I ran the program and seem to have messed with the online mode settings. The application has lost all the toolbar and window settings. Do you know where these settings will be saved so that I could get my network admin to restore previous versions of these settings
I ran the program and seem to have messed with the online mode settings. The application has lost all the toolbar and window settings. Do you know where these settings will be saved so that I could get my network admin to restore previous versions of these settings
If your comment refers to the way the interface looks during execution, this could just be normal behavior. There's a program setting in the F5 setup options "Use program layout for execution". Ticking this box will force pc-dmis interface look "the same" as while programming during execution.
It is after I ran my code which does not run exactly i want it to, after I have closed my application and everything. Now when I open PCDMIS from start menu in Online mode all my toolbar and panel docking settings is gone. I am not aware why this is happening. From reading through help files further I am thinking it is because I am running my code on PCDMIS 2011 release on a Windows 7 computer and my code is using Interop.PCDLRN.12.1 version. Maybe something is going on here because I am using latest DLL on an older version of PCDMIS. And it could be also that PCDMIS does not let my application to set operation mode to it and keeps launching it in online mode so something messed up there.