Hi everyone,
I am building a geometry automation pipeline and trying to execute a SpaceClaim script using ansys-geometry-core in VS Code (Python 3.10). While SpaceClaim launches successfully, I encounter an AttributeError when trying to run the script.
my code
from ansys.geometry.core import launch_modeler
modeler = launch_modeler("spaceclaim")
spaceclaim_script = f"""DocumentOpen.Execute(r"C:/Users/prasa/Downloads/Design1.scdocx")"""
modeler.run_script(spaceclaim_script)
error
CRITICAL - - logger - handle_exception - Uncaught exception
Traceback (most recent call last):
File "c:\Users\prasa\OneDrive\Desktop\automation\spaceclaim_launch.py", line 12, in
modeler.run_script(spaceclaim_script)
^^^^^^^^^^^^^^^^^^
AttributeError: 'Modeler' object has no attribute 'run_script'