Working with Siemens JT Format

Contents
[ ]

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)