-
-
July 25, 2023 at 4:01 amFranc ShawSubscriber
Hi everyone,
I was wondering if I can design a 3D model in Spyder using python, then load the code into ANSYS SpaceClaim Editor and run to build a 3D model?
All above operations are performed in Spyder, not in SpaceCalim.
Thanks a lot! -
July 25, 2023 at 2:10 pmAniketForum Moderator
Do you mean that copy-paste a code from spyder to the SpaceClaim scripting window? or do you want to drive geometry creation from spyder?
-Aniket
-
July 26, 2023 at 11:19 amFranc ShawSubscribercopy-paste a code from spyder to the SpaceClaim scripting window
-
July 26, 2023 at 3:36 pmAniketForum Moderator
That should work as long as you are using indices instead of smart variables:
what issues are you facing right now?
-Aniket
-
-
July 26, 2023 at 11:19 pmFranc ShawSubscriber
-
July 27, 2023 at 2:46 pmAniketForum Moderator
Hi I think you should be able to use command line prompt to create geometry:
Please check if this page helps:
https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v231/en/spaceclaim/Discovery/user_manual/spaceclaim_command_line_options.html
-Aniket
-
July 31, 2023 at 9:14 amNickFLSubscriber
Aniket,
Thank you for the link. I have a couple of questions in regards to running from the command line.
- My model is a terrible STL and I do not want to visualize it until it is cut up. That is why I want to use SpaceClaim without the GUI. It seems like the \Headless option is what I want. However when I set \Headless = True it seems to still open the interface.
- I have a script the opens a file (STL saved in SpaceClaim so no import needed), slices, deletes and saves. It was built off recorded options and works quite well when I do it manually. It is saved as a .scscript.
SpaceClaim opens but seems to ignore the headless and the script (& also the exit). Here is what I am using on the Command Line (starting from the working directory where the script is located):
> spaceclaim \Headless=True /RunScript=”PositiveXY_Script_forCmd.scscript” /ExitAfterScript=True
Thanks in advance.
-
July 31, 2023 at 9:56 amNickFLSubscriber
Ok, I guess I was a little impatient. It does run the script, it just takes a long time to open the files and do the slicing. And my / was in the wrong direction :facepalm:
-
-
-
July 27, 2023 at 10:10 pmFranc ShawSubscriber
Hi,
Does SpaceClaim provide any API to let me create geometry using command prompt?
Thanks!
-
- The topic ‘Edit SpaceClaim script code from external python editor such as Spyder’ is closed to new replies.
- Data Center Simulation
- Unable to attach geometry 2024 R2
- Getting Mesh Faces With Specified Normal Via SpaceClaim Scripting (V241)
- How to provide blade angles in bladegen.
- DXF file loaded incorrectly
- Crash by using Script Editor
- plugin error failed to import assembly from spaceclaim
- Overlapping contact face
- Temperature’s Distribution not available in Refine Mode ?
- Thermoelectric Cooler Model
-
1191
-
513
-
488
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.