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

Collapse All Expand All

FileName
  This string is the full pathway specifying the location of the exported XML file.

# Description

Export Part Program Data to XML

This exports the part program as an XML file.

# Syntax

Visual Basic

    Public Sub ExportToXML( _
       ByVal FileName As String _
    )

# Parameters

FileName
  This string is the full pathway specifying the location of the exported XML file.

# Example

Private Sub cmdExportXML_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 exporting the current part program as an XML file. Click OK, when you have a part program open that you want to export.", vbInformation, "XML Operations - Export"
Dim Part As PartProgram
Set Part = App.ActivePartProgram
'Exporting the part program
Part.ExportToXML "d:\temp\exported_part_program.xml"
MsgBox "The part program has been exported as an XML file."
End Sub

# See Also

PartProgram Object | ImportToXML Method

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.