Solid Edge Part Type Library
SaveAsJT Method
Specify complete path with file name and extension as string.
Controls the inclusion of B-REP definition in resultant JT files. JT file size will be larger when set to true, but JT viewer functionality that is able to use the precise B-REP definition will provide more accurate results. If “True” then use 1 else 0.

Controls the mapping of the JT product structure to the JT file structure for any JT output. Possible values include:

If “True” then use 1 else 0.
Controls whether coordinate systems are exported to the .JT file. If “True” then use 1 else 0.

Specifies which body is included in the .JT file.

Possible values include:

Controls the interpretation of the Chordal LOD parameter. Specify Possible number of LOD’s

Controls the model units for the JT files.

Possible values include:

· For “mm” use 0

· For “cm” use 1

· For “m” use 2

· For “km” use 3

· For “in” use 4

· For “ft” use 5

· For “yd” use 6

· For “mi” use 7

Controls which type of files are to be written.

· For “All” use 1

· For “Parts_Only” use 2

· For “Assembly_Only” use 3

Applies the Simplified override at Top assembly during translation if there is a simplified data available in Solid Edge top assembly file.

If “True” then use 1 else 0.

- Applies the Simplified override at subassembly level during translation if there is a simplified data available in Solid Edge sub-assembly files.

If “True” then use 1 else 0.

Applies the Simplified override at part level during translation if there is a simplified data available in Solid Edge part files.

If “True” then use 1 else 0.

Controls whether the output folder is the same as the input folder for the documents you are importing. If you select this option and import an assembly, the assembly and the individual parts in the assembly are imported to the same folder.

If “True” then use 1 else 0.

- Controls the inclusion of Solid Edge properties in the JT files.

If “True” then use 1 else 0.

Controls the inclusion of visible Solid Edge parts in the JT files. If this is true, all visible parts are translated to JT format.

If “True” then use 1 else 0.

Controls the inclusion of Solid Edge construction geometry in the JT files. If this is true, all visible constructions are translated to JT format.

If “True” then use 1 else 0.

If “True” then use 1 else 0.

Exports a single JT file for SE Part document. If this flag is set to true, Save As JT on SE Part document outputs a single JT file.

If “True” then use 1 else 0.

Description
Saves the referenced document to JT format with specified options.
Syntax
Visual Basic
Public Sub SaveAsJT( _
   ByVal NewName As String, _
   Optional ByVal Include_PreciseGeom As Variant, _
   Optional ByVal Prod_Structure_Option As Variant, _
   Optional ByVal Export_PMI As Variant, _
   Optional ByVal Export_CoordinateSystem As Variant, _
   Optional ByVal Export_3DBodies As Variant, _
   Optional ByVal NumberofLODs As Variant, _
   Optional ByVal JTFileUnit As Variant, _
   Optional ByVal Write_Which_Files As Variant, _
   Optional ByVal Use_Simplified_TopAsm As Variant, _
   Optional ByVal Use_Simplified_SubAsm As Variant, _
   Optional ByVal Use_Simplified_Part As Variant, _
   Optional ByVal EnableDefaultOutputPath As Variant, _
   Optional ByVal IncludeSEProperties As Variant, _
   Optional ByVal Export_VisiblePartsOnly As Variant, _
   Optional ByVal Export_VisibleConstructionsOnly As Variant, _
   Optional ByVal RemoveUnsafeCharacters As Variant, _
   Optional ByVal ExportSEPartFileAsSingleJTFile As Variant _
) 
Parameters
NewName
Specify complete path with file name and extension as string.
Include_PreciseGeom
Controls the inclusion of B-REP definition in resultant JT files. JT file size will be larger when set to true, but JT viewer functionality that is able to use the precise B-REP definition will provide more accurate results. If “True” then use 1 else 0.
Prod_Structure_Option

Controls the mapping of the JT product structure to the JT file structure for any JT output. Possible values include:

  • For “MONOLITHIC” use 1
  • For “PER_PART” use 2
  • For “FULL_SHATTER” use 3
  • For “UG_SHATTER” use 4
Export_PMI
If “True” then use 1 else 0.
Export_CoordinateSystem
Controls whether coordinate systems are exported to the .JT file. If “True” then use 1 else 0.
Export_3DBodies

Specifies which body is included in the .JT file.

Possible values include:

  • For “design body only” use 0
  • For “flat body only” use 1
  • For  “all bodies” use 3
NumberofLODs
Controls the interpretation of the Chordal LOD parameter. Specify Possible number of LOD’s
JTFileUnit

Controls the model units for the JT files.

Possible values include:

· For “mm” use 0

· For “cm” use 1

· For “m” use 2

· For “km” use 3

· For “in” use 4

· For “ft” use 5

· For “yd” use 6

· For “mi” use 7

Write_Which_Files

Controls which type of files are to be written.

· For “All” use 1

· For “Parts_Only” use 2

· For “Assembly_Only” use 3

Use_Simplified_TopAsm

Applies the Simplified override at Top assembly during translation if there is a simplified data available in Solid Edge top assembly file.

If “True” then use 1 else 0.

Use_Simplified_SubAsm

- Applies the Simplified override at subassembly level during translation if there is a simplified data available in Solid Edge sub-assembly files.

If “True” then use 1 else 0.

Use_Simplified_Part

Applies the Simplified override at part level during translation if there is a simplified data available in Solid Edge part files.

If “True” then use 1 else 0.

EnableDefaultOutputPath

Controls whether the output folder is the same as the input folder for the documents you are importing. If you select this option and import an assembly, the assembly and the individual parts in the assembly are imported to the same folder.

If “True” then use 1 else 0.

IncludeSEProperties

- Controls the inclusion of Solid Edge properties in the JT files.

If “True” then use 1 else 0.

Export_VisiblePartsOnly

Controls the inclusion of visible Solid Edge parts in the JT files. If this is true, all visible parts are translated to JT format.

If “True” then use 1 else 0.

Export_VisibleConstructionsOnly

Controls the inclusion of Solid Edge construction geometry in the JT files. If this is true, all visible constructions are translated to JT format.

If “True” then use 1 else 0.

RemoveUnsafeCharacters
If “True” then use 1 else 0.
ExportSEPartFileAsSingleJTFile

Exports a single JT file for SE Part document. If this flag is set to true, Save As JT on SE Part document outputs a single JT file.

If “True” then use 1 else 0.

Remarks
More help about above parameters is available in Solid Edge Help section "Working with JT Documents in Solid Edge".
Example
Public Class SaveAsJT

    Private Sub SaveAsJT_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objPartDoc As SolidEdgePart.PartDocument = Nothing

        Try

            objApplication = GetObject(, "SolidEdge.Application")
            objPartDoc = objApplication.ActiveDocument
            objPartDoc.SaveAsJT("C:\TestPart.jt", 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0)

        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Sub
End Class
See Also

PartDocument Object  | PartDocument Members  | Solid Edge ST3 - What's New