PC-DMIS 2019 R2 Object Library
OutputFileIndex Property
See Also  Example  Send Topic Feedback | See Object Hierarchy Chart
PCDLRN ActiveX DLL > PartProgram Object : OutputFileIndex Property

Glossary Item Box

Description

When you generate a saved output file using automatic indexing with the Edit window PRINT/AUTO command, PC-DMIS uses an index value as a base. It then it increments the index if there's a duplicate file name in the same directory so that you end up with a unique file name.

This property lets you get or set the index value stored in the part program.

Syntax

Visual Basic
Public Property OutputFileIndex As Long

Return Type

Long value showing the file's index value.

Example

This example gets the saved index value stored in the part program and places it in a saveIndex variable. The code then sets the index value to a new value of newIndex. Finally, it restores the index to the original saveIndex value.
Example (Visual Basic)Copy Code
activePartProgram = App.ActivepartProgram
dim saveIndex as Integer
saveIndex = activePartProgram.OutputFileIndex
activePartProgram.OutputFileIndex = newIndex
....
....
activePartProgram.OutputFileIndex = saveIndex

See Also

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