-
-
May 2, 2020 at 7:15 pm
prabhukumar
SubscriberHi all,
Â
I am trying to automate a process in spaceclaim. My goal is to import an STL file, extrude it and save it as STEP file. I could record the script in the spaceclaim software and it works perfectly fine. I would like to run the script directly from the command terminal without manually opening the software. Any help would be appreciated. Thank you very much.
Â
Regards,
Prabhu. -
May 4, 2020 at 12:02 pm
Aniket Chavan
Forum ModeratorIf you have your SpaceClaim script and know the container in which SpaceClaim resides (If you don't know you can simply start recording a journal from workbench page, and then open SpaceClaim to get the required information).
myCommand="print 'test'"
container.SendCommand(Language="Python", myCommand)
as explained in the help:
Also, see:
Finally, once your workbench python journal is ready, through which you can call SpaceClaim journal, you can use the following command from a windows command prompt:
-Aniket
How to access Ansys Online Help Document
How to show full resolution image
Guidelines on the Student Community
How to use Google to search within Ansys Student Community
Â
Â
Â
Â
-
May 5, 2020 at 9:56 pm
prabhukumar
SubscriberThanks for the reply. The links you have posted is secured to the customer portal. I am a student and looks like I cannot access the site with a proper license as well?
Â
Â
-
May 6, 2020 at 8:05 am
Aniket Chavan
Forum Moderatorplease check my signature that explains how to access those links for students.
-Aniket
How to access Ansys Online Help Document
How to show full resolution image
Guidelines on the Student Community
How to use Google to search within Ansys Student Community
Â
-
May 6, 2020 at 11:37 pm
prabhukumar
SubscriberHi Aniket, thanks for the reply.Â
But I think the response on the link "How to access Ansys Online Help Document" is not working. No browser window is opening with Ansys 17.1 or 18.1.Â
I was looking on other links on the student community and found the below link
/forum/forums/topic/links-to-help-go-to-customer-portal-sign-in-page/ where Peter also mentions about the steps for Ansys 19.1 and when I asked him (on that link) that steps doesn't work for 17.1 and 18.1. He replied that older versions of Ansys help were local and newer versions were web based.Â
So I cannot access them?Â
-
May 7, 2020 at 5:59 am
Aniket Chavan
Forum ModeratorI don't think we had free student version back when we had 17 or 18? Are you using a free student license?Â
Links I have given are for 2019R3, you can download the latest version from https://www.ansys.com/academic/free-student-products
Also, the scripting in SpaceClaim in older versions was beta and not work exactly the same as that of the latest versions.
Â
-
May 8, 2020 at 12:17 am
prabhukumar
SubscriberI am using the academic license of the university. And have access to Workbench 17.1 and 18.1.Â
-
May 8, 2020 at 10:53 am
Aniket Chavan
Forum ModeratorIs there any chance that you can upgrade to latest version that is available free for students?
I am asking this because:
1. we only support latest and 2 major releases before that (even for commercial customers)
2 Many of the scripting capabilities might not be possible in older versions.
Â
-
May 9, 2020 at 4:12 pm
prabhukumar
SubscriberThanks for your time.Â
Â
I got an answer from a youtube video and the following command works to run a sample.py from the command prompt:Â
C:Program FilesANSYS Incv194scdm>spaceclaim.exe /RunScript="E:tempsample.py" /Headless=True /Splash=False /Welcome=False /ExitAfterScript=True
The arguments are: /RunScript - specify full path of script file /Headless - hide/show SCDM GUI /Splash - hide/show splash screen appearing while launching SCDM /Welcome - hide/show welcome screen /ExitAfterScript - specifies if SCDM application should exit when script is finished
-
May 11, 2020 at 10:26 am
Aniket Chavan
Forum ModeratorGood. Please post the link of the video as well so it will help others.
-
May 12, 2020 at 7:32 pm
prabhukumar
Subscriberhttps://www.youtube.com/watch?v=th4XTgAuRMQ&feature=em-comments Please look at the video and the comments.Â
-
November 12, 2020 at 11:20 am
Tèche
SubscriberHello Aniket, I'm looking for at least one small example of using SendCommand with python script to create a simple geometry, in my ANSYS Help (V18) I only found an example with Javascript.. nAnd this example doesn't work for me:n
I don't see any ellipse created when I run this..nThen I create a cylinder and record a py script. Running a script in SpaceClaim is ok:n
Then I want to do the same by launching a .wbjn file (using SendCommand), so I do this:n
But it doesn't work, it only create a surface, and no extrusion, because , I guess, it doesn't know what is Info1 and Face1.n
nYes, there is a documentation and some video on Youtube, but it s not clear at all for me how I should proceed. nCan you gives me any help?nThank you in advancenTatianan
-
November 12, 2020 at 3:08 pm
Tèche
SubscriberHello, don't consider my question, I think I found a solution. There are examples in Insert Snippet/ ExamplesnArrayn
-
- The topic ‘Spaceclaim Scripting’ is closed to new replies.
-
6625
-
1906
-
1469
-
1311
-
1022
© 2026 Copyright ANSYS, Inc. All rights reserved.