PC-DMIS 2021.1 Object Library
PartPrograms Object Members
See Also  Overview  Send Topic Feedback | See Object Hierarchy Chart
PCDLRN ActiveX DLL : PartPrograms Object

Glossary Item Box

Public Methods

Public Method _Item 
Public Method AddThe Add function creates a new measurement routine and activates it in PC-DMIS. If a measurement routine named FileName exists, it is loaded and the Units parameter is ignored.
Public Method CloseAllCloses and deactivates all active measurement routines in PC-DMIS.
Public Method CreateInspectionPlanCreates a new inspection plan with different CAD file name and adds it to the PartPrograms collection
Public Method CreateInspectionPlanFromPlanXmlCreates a new inspection plan with different CAD file name from a PlanXml file and adds it to the PartPrograms collection
Public Method CreateRoutineCreates a new measurement routine with different CAD file name and adds it to the PartPrograms collection
Public Method CreateRoutineFromInspectionPlanCreates a measurement routine from an inspection plan and then adds the routine as part of a PartPrograms collection.
Public Method GetMarkedSetInfoListGets the existing MarkSet Collection
Public Method GetMiniRoutineInfoListGets the existing mini routines Collection
Public Method ItemReturns a specific PartProgram object from the collection in the PartPrograms object.
Public Method OpenThe Open function activates the measurement routine stored in the file FileName. If the file does not exist, nothing happens.
Public Method OpenEx

This function opens a measurement routine and adds it to the PartPrograms collection.

This method differs from the Open method because it includes some additional parameters: IncludeCAD and OpenRoutineStatus * out_StatusCode

The IncludeCAD parameter corresponds to the Include CAD checkbox on the Open dialog box in PC-DMIS.

Public Method OpenInspectionPlanOpens an inspection plan with different CAD file name and adds it to the PartPrograms collection
Public Method OpenRoutineThis behaves the same as the Open method, except that you can define what CAD file to load.
Public Method OpenRoutineExThis behaves the same as the OpenEx method, except that you can define what CAD file to load.
Public Method RemoveThe Remove function saves, closes, and deactivates the indicated measurement routine. That measurement routine is no longer active in PC-DMIS.

Public Properties

Public Property ApplicationRepresents the read-only PC-DMIS application. The Application object includes properties and methods that return top-level objects. For example, the ActivePartProgram property returns a PartProgram object.
Public Property CountReturns the number of measurement routines active in PC-DMIS.
Public Property ParentReturns the parent object, in this case the Application object.

See Also

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