PC-DMIS 2022.1 Object Library
OpenRoutine Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
FileName
Required String. This is the file name of the PartProgram to open.
CadFileName

Required String. This is the pathway to the CAD file (.cad) to open.

If this is null or PC-DMIS can't find the CAD file, PC-DMIS instead loads the CAD file for the routine. This is the CAD file that has the same name as the routine. This behaves as if you used the Open method with IncludeCAD to True.

MachineName
Required String. This is the identifying string for your machine. If you're running in offline mode, use "Offline". If you're running in online mode use "CMM1".
PCDLRN ActiveX DLL > PartPrograms Object : OpenRoutine Method

Glossary Item Box

Description

This behaves the same as the Open method, except that you can define what CAD file to load.

Syntax

Visual Basic
Public Function OpenRoutine( _
   ByVal FileName As String, _
   ByVal CadFileName As String, _
   ByVal MachineName As String _
) As PartProgram

Parameters

FileName
Required String. This is the file name of the PartProgram to open.
CadFileName

Required String. This is the pathway to the CAD file (.cad) to open.

If this is null or PC-DMIS can't find the CAD file, PC-DMIS instead loads the CAD file for the routine. This is the CAD file that has the same name as the routine. This behaves as if you used the Open method with IncludeCAD to True.

MachineName
Required String. This is the identifying string for your machine. If you're running in offline mode, use "Offline". If you're running in online mode use "CMM1".

See Also

Copyright © 2022. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.