PC-Dmis 2010 Object Library | Send comments on this topic. | See Object Hierarchy Chart
Add Method
See Also

Collapse All Expand All

Name
  Required String. The file name in which to store the new PartProgram.

Units
  Required UNITTYPE enumeration.

Machine
  Required String. The identifying string for your machine. If you're running in offline mode, use "Offline". If you're running in online mode use "CMM1".

ProbeFile
  Required String. The identifying string for the probe (.prb) file to use in the part program.

# Description

Creates a new part program and adds it to the partprograms collection The Add function creates a new part program and activates it in PC-DMIS. If a part program named FileName exists, it is loaded and the Units parameter is ignored.

# Syntax

Visual Basic

    Public Function Add( _
       ByVal Name As String, _
       ByVal Units As UNITTYPE, _
       ByVal Machine As String, _
       ByVal ProbeFile As String _
    ) As PartProgram

# Parameters

Name
  Required String. The file name in which to store the new PartProgram.
Units

  Value | Description
  --- | ---
  INCH |
  MM |

  Required UNITTYPE enumeration.
Machine
  Required String. The identifying string for your machine. If you're running in offline mode, use "Offline". If you're running in online mode use "CMM1".
ProbeFile
  Required String. The identifying string for the probe (.prb) file to use in the part program.

# See Also

PartPrograms Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.