By Default, It is using 2025R1, But I need to execute it using 2025R2.
import ansys.geometry.core as pygeometry
import os
# 1. Launch the modeler
# You need a local installation of Ansys SpaceClaim or Discovery for this to work
modeler = pygeometry.launch_modeler()
# 2. Define the path to your .scdocx file
# Ensure you use the absolute path, potentially as a raw string (r"...")
file_path = r"C:\Users\118300.GARRETTMOTION\OneDrive - Garrett Advancing Motion\My Files\1. Projects\1. CHT Tool\2. Hsg\Inputs\Geometry\Two Stage\907122-0100 full open top assy.scdoc"
# 3. Open the file
design = modeler.open_file(file_path=file_path)
# You can now work with the 'design' object
print(f"Successfully loaded design with bodies: {[body.name for body in design.bodies]}")
from ansys.geometry.core import launch_modeler_with_spaceclaim
# Using the launcher handles transport_mode automatically
modeler = launch_modeler_with_spaceclaim()
design = modeler.open_file(file_path=r"C:\Users\118300.GARRETTMOTION\Downloads\ZEV Mech\Sreenadh\M252_ASMNEW2.scdocx")