Solid Edge Part Type Library > PartDocument Object : SaveAsJT Method |
Controls the mapping of the JT product structure to the JT file structure for any JT output. Possible values include:
Specifies which body is included in the .JT file.
Possible values include:
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.
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.
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 _ ) |
Controls the mapping of the JT product structure to the JT file structure for any JT output. Possible values include:
Specifies which body is included in the .JT file.
Possible values include:
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.
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.
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