PC-DMIS 2022.1 Object Library
SaveAs Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
Name

String value containing the full pathway and file name to which to save.

PCDLRN ActiveX DLL > PartProgram Object : SaveAs Method

Glossary Item Box

Description

 

This lets you save the measurement routine with a new name or in a new file location.

Syntax

Visual Basic
Public Function SaveAs( _
   ByVal Name As String _
) As Boolean

Parameters

Name

String value containing the full pathway and file name to which to save.

Return Type

Boolean value. Boolean returns true if the function succeeds, false if it fails. TRUE if the part was saved successfully, FALSE otherwise.

Example

Sub Main (strText As String)

Dim App As Object

Set App = CreateObject ("PCDLRN.Application")

Dim Part As Object

Set Part = App.ActivePartProgram

Part.SaveAs "d:\temp\testprogram.prg"

End Sub

See Also

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