TAGGED: api, Moderator SpaceClaim, script, spaceclaim
-
-
January 17, 2024 at 6:53 am
-
January 17, 2024 at 10:09 amAtharv JoshiForum Moderator
Hi Alex,
SpaceClaim script editor has 2 modes(Run, Debug) for executing the script.
While using InputHelper command the script should be executed in Debug mode.
This allows the scipt to pause and take user input.Thanks and Regards
Atharv -
January 17, 2024 at 10:46 amuser deletedSubscriber
Hi Atharv, If you mean the editor for Python, then I know this information.
But I need to call "InputHelper.PauseAndGetInput" from c#. Inside the "InputHelper.PauseAndGetInput" checks that the "ScriptHelper.OnScriptingThread" field is true, otherwise an exception is thrown. How to call "InputHelper.PauseAndGetInput" so that "ScriptHelper.OnScriptingThread" is true?
-
January 17, 2024 at 2:21 pmAtharv JoshiForum Moderator
Let me check for C# calls that run the script in debug mode.
-
January 29, 2024 at 6:16 amAtharv JoshiForum Moderator
Hi Alex,
You can try executing the script as RunScriptAsync, instead of RunScript.
This may help with pasuing the script. Let me know if it works.
Regards
Atharv
-
- The topic ‘SpaceClaim Api Scripts C#’ 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
- plugin error failed to import assembly from spaceclaim
- Crash by using Script Editor
- 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.