PC-DMIS 2021.1 Object Library
SaveAs3 Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
Name

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

NameOrSchema
This is the version name or the schema number that the measurement routine must use when saving.
CadAsReference

Boolean value that determines whether or not to save the CAD as a reference to the original CAD file. This lets you reference your CAD model instead of copying a new one. This helps save disk space.

  • TRUE will save the CAD as a reference.
  • FALSE will create a new CAD file with the same name as the measurement routine.
PCDLRN ActiveX DLL > PartProgram Object : SaveAs3 Method

Glossary Item Box

Description

This method lets you save the measurement routine with a new name or in a new file location. It differs from the SaveAs method by letting you specify the version name or schema number and by saving the CAD file as a reference.

Syntax

Visual Basic
Public Function SaveAs3( _
   ByVal Name As String, _
   ByVal NameOrSchema As Variant, _
   ByVal CadAsReference As Boolean _
) As Boolean

Parameters

Name

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

NameOrSchema
This is the version name or the schema number that the measurement routine must use when saving.
CadAsReference

Boolean value that determines whether or not to save the CAD as a reference to the original CAD file. This lets you reference your CAD model instead of copying a new one. This helps save disk space.

  • TRUE will save the CAD as a reference.
  • FALSE will create a new CAD file with the same name as the measurement routine.

Return Type

Boolean value. Boolean returns true if the function succeeds, false if it fails.

If the part was saved successfully, this returns True.

If the part did not save successfully, this returns False. This can happen if you use an incorrect version name or schema number.

See Also

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