Your Products have been synced, click here to refresh
Sub Main ' THIS SECTION DECLARES THE VARIABLES For THE FILENAME SAVE And FOLDER CREATE ' "SET" DECLARES THE VALUE OF THE VARIABLES ' "PART.GETVARIABLEVALUE" PULLS THE VARIABLE VALUE FROM THE .PRG UPON EXECUTION Dim App As Object Set App = CreateObject("PCDLRN.Application") Dim Part As Object Set Part = App.ActivePartProgram 'Declares PartProg As the Active part program Dim PartProg As Object Set PartProg = App.ActivePartProgram Dim Cmds As Object Set Cmds = Part.Commands Dim VSERIAL As Object Set VSERIAL = PART.GETVARIABLEVALUE ("VSERIALNUMBER") Dim VDATE As Object Set VDATE = PART.GETVARIABLEVALUE ("VDATE") Dim VTIME As Object Set VTIME = PART.GETVARIABLEVALUE ("VTIME") Dim VPARTNUMBER As Object Set VPARTNUMBER = PART.GETVARIABLEVALUE ("VPART") Dim VDESCRIPTION As Object Set VDESCRIPTION = PART.GETVARIABLEVALUE ("VDESCRIPTION") End Sub
Sub Main ' THIS SECTION DECLARES THE VARIABLES For THE FILENAME SAVE And FOLDER CREATE ' "SET" DECLARES THE VALUE OF THE VARIABLES ' "PART.GETVARIABLEVALUE" PULLS THE VARIABLE VALUE FROM THE .PRG UPON EXECUTION Dim App As Object Set App = CreateObject("PCDLRN.Application") Dim Part As Object Set Part = App.ActivePartProgram 'Declares PartProg As the Active part program Dim PartProg As Object Set PartProg = App.ActivePartProgram Dim Cmds As Object Set Cmds = Part.Commands Dim VSERIAL As Object Set VSERIAL = PART.GETVARIABLEVALUE ("VSERIALNUMBER") Dim VDATE As Object Set VDATE = PART.GETVARIABLEVALUE ("VDATE") Dim VTIME As Object Set VTIME = PART.GETVARIABLEVALUE ("VTIME") Dim VPARTNUMBER As Object Set VPARTNUMBER = PART.GETVARIABLEVALUE ("VPART") Dim VDESCRIPTION As Object Set VDESCRIPTION = PART.GETVARIABLEVALUE ("VDESCRIPTION") End Sub
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |