Closed koubaa closed 2 months ago
The API isn't so clean yet. An example script looks like this:
import ansys.mechanical.core as mech project_file=r"D:\path\to\project.mechdat" usda_file = r"D:\path\to\scene.usda" app = mech.App(version=242, db_file=project_file) app.open(project_file) print(app) from ansys.mechanical.core.embedding.viz.usd_converter import to_usd_file print(f"converting {project_file} to usda at {usda_file}") to_usd_file(app, usda_file)
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 76.80%. Comparing base (6fb184a) to head (3edd5d7).
6fb184a
3edd5d7
The API isn't so clean yet. An example script looks like this: