PC-Dmis 2010 Object Library | Send comments on this topic. | See Object Hierarchy Chart
ImportXML Method
See Also

Collapse All Expand All

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

# Description

Import Part Program Data from XML

This imports a part program in an XML format into the current part program.

# 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 part program XML file. Click OK, when you have a part program open.", vbInformation, "XML Operations - Import"
Dim Part As PartProgram
Set Part = App.ActivePartProgram
'Exporting the part program
Part.ExportToXML "d:\temp\exported_part_program.xml"
MsgBox "The XML file has been imported into the part program."
End Sub

# See Also

PartProgram Object | ExportToXML Method

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.