Your Products have been synced, click here to refresh
C1=COMMENT/INPUT,Please type an integer value. ASSIGN/V1 = INT(C1.INPUT) COMMENT/OPER,BEFORE SCRIPT: Variable is: ,V1 CS1=SCRIPT/FILENAME= D:\PROGRAM FILES\PCDMIS35\TEST2.BAS FUNCTION/Main,[COLOR="Red"]ARG1=V1[/COLOR],, STARTSCRIPT/ ENDSCRIPT/
Sub Main(VarV1 as string) Dim App As Object Set App = CreateObject ("PCDLRN.Application") Dim Part As Object Set Part = App.ActivePartProgram MsgBox "V1 is now: " & VarV1 End Sub
Option Explicit Dim CommandLineInput As String Dim CommandLineParsed() As String Dim VariableName As String Sub SaveData(Response As String) VariableName = "DROPLIST" Dim PCDMIS As Object Set PCDMIS = CreateObject("PCDLRN.Application") Dim Part As Object Set Part = PCDMIS.ActivePartProgram Dim objListVar As Object Set objListVar = Part.GetVariableValue(VariableName) 'where VariableName is a PCDMIS part program variable 'MsgBox "PCDMIS Variable: " & objListVar.StringValue objListVar.StringValue = Response Part.SetVariableValue VariableName, objListVar 'this sets the variable in the part program to the value of Response 'Part.RefreshPart End Sub
But I get a "type mismatch" error
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |