PC-DMIS 2022.1 Object Library
ImportXML Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
FileName
This string is the full pathway pointing to the .xml file to import.
PCDLRN ActiveX DLL > PartProgram Object : ImportXML Method

Glossary Item Box

Description

 

This imports a measurement routine in an XML format into the current measurement routine.

Syntax

Visual Basic
Public Sub ImportXML( _
   ByVal FileName As String _
) 

Parameters

FileName
This string is the full pathway pointing to the .xml file to import.

Example

Private Sub CmdImportXML_Click()
     ' These blocks of commands define the objects for use
    Dim App As PCDLRN.Application
    Set App = CreateObject("PCDLRN.Application")
    App.Visible = True
    MsgBox "This is an example of importing an exported measurement routine XML file. Click OK, when you have a measurement routine open.", vbInformation, "XML Operations - Import"
   
    Dim Part As PartProgram
    Set Part = App.ActivePartProgram
   
    'Exporting the measurement routine
    Part.ExportToXML "d:\temp\exported_part_program.xml"
   
    MsgBox "The XML file has been imported into the measurement routine."
      
End Sub

See Also

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