Closed umutsoysalansys closed 5 months ago
Seems to me like something that might have to be investigated server-side @umutsoysalansys @b-matteo
@umutsoysalansys - opening files with SpaceClaim seems to work just fine. Can you verify again?
Might be related to #947
@RobPasMue it is working in SC it is not working with Discovery
Hey @umutsoysalansys - can you share the file you are having problems with?
Just ran the following code:
import os
from ansys.geometry.core import launch_modeler_with_discovery
# Launch modeler
modeler = launch_modeler_with_discovery()
# Read design from file - do not upload to server, not needed since it is local
file_path = os.path.join(os.path.dirname(__file__), "my_design.scdoc")
design = modeler.open_file(file_path, upload_to_server=False)
# Print the design
print(design)
And it works perfectly fine. Issue you are experiencing might be due to the fact that you are just passing the file name and not the entire path to the file. Give it a try and let me know if it works.
Closing due to inactivity
🔍 Before submitting the issue
🐞 Description of the bug
modeler.open_file("XX.scdoc") works fine on SC but it doesn't work on Discovery
📝 Steps to reproduce
Launch ApiServer with Discovery open a s.scdoc file with modeler.open_file()
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
Discovery V242
🐍 Which Python version are you using?
3.10
📦 Installed packages