Working with Siemens JT Format
Contents
[
Hide
]
Importing JT 10 files and exporting scenes to JT 10 requires version 26.7 or greater.
Open Siemens JT File Format
Aspose.3D for Python via .NET lets you read Siemens JT files — versions 8, 9 and 10. JT files often store multiple level-of-detail (LOD) meshes for the same geometry so CAD viewers can trade detail for speed. The JtLoadOptions.level_of_detail property selects which LOD mesh to load, or loads them all.
from aspose.threed import Scene
from aspose.threed.formats import JtLoadOptions, JtLoadLevelOfDetail
# Load a Siemens JT file
scene = Scene.from_file("input.jt")
# Or load it with JT options, choosing the level of detail to import
load_options = JtLoadOptions()
# Load all level-of-detail meshes defined in the JT file
load_options.level_of_detail = JtLoadLevelOfDetail.ALL
# Load PMI (Product Manufacturing Information) if present
load_options.load_pmi = True
loaded = Scene()
loaded.open("input.jt", load_options)Save Siemens JT File Format
You can export a scene to Siemens JT 10 using the SIEMENS_JT10 file format.
from aspose.threed import FileFormat
# Save the scene back to a JT 10 file
scene.save("output.jt", FileFormat.SIEMENS_JT10)
When you save a scene to JT, the file is always written in JT 10 format regardless of the JT version the source file used. In the Python API,
JtSaveOptions exists but its per-property settings (normal export, vertex quantization) are only configurable through the .NET and Java APIs.