TAGGED: scripting, spaceclaim
-
-
March 13, 2023 at 1:43 pm
Matthew Westlake
I created several scripts in Spaceclaim for parameterized geometry generation last year, and they functioned propertly. Today, when I tried to use one of these scripts, it didn't function propertly.
Upon investigation I discovered that the Point2D.Create(input1, input2) command was creating geometry with the inputs flipped.
Here's the section of the code in question:
result = ViewHelper.SetSketchPlane(Axis1, Info1)
result = SketchHelper.StartConstraintSketching()
origin = Point2D.Create(IN(0), IN(TopHeadCenterElev))
result = SketchCircle.Create(origin, IN(HeadRad))
curvehead = result.CreatedCurvesLast year when this script was run, the circle was created on the global Y axis, now the script creates a circle on the global Z axis.
This is part of a much larger collection of scripts, so flipping the inputs would be very labor intensive.
Is there a setting that can be adjusted to cause the scripts to function as they previously did?
-
March 14, 2023 at 12:14 am
Devendra Badgujar
Forum ModeratorHello Matthew Westlake
Are you using the same version of SpaceClaim as before? If so, there might be different settings while you created the script.
Try clearing your user settings from File > SpaceClaim Options > Advanced > Reset All User Settings.
Not sure if this should impact your script, but you can try setting Top View direction to Y axis as shown in the image below. This can be done from File>SpaceClaim Options>Behavior>Top View Direction.
Let me know if this works for you.
Regards.
-
March 14, 2023 at 9:22 am
Matthew Westlake
Devendra Badgujar
Thank you for your response, I am using the same version of SpaceClaim. The only user setting I adjust is the units. I tried changing the top view direction to X, Y, Z and then starting new documents. This setting has no effect on the way the the sketches function.
I tried resetting all user settings and restarting the program, but still see no change.
Let me know if you've got any other ideas, thanks!
Matt
-
March 14, 2023 at 10:35 am
Devendra Badgujar
Forum ModeratorMatthew Westlake
Is it possible for you to share the script you are using, I will check if I am able to reproduce it.
-
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- How to work with STL file?
- Rotate tool in ANSYS Design Modeler
- section plane
- Using Symmetry in DesignModeler and Expanding the Results
- ANSYS FLUENT – Operation would result in non manifold bodies
- drawing a geometry by importing a table of points
- material properties
- Coordinates orientation
- “contact pair has no element in it.” how to resolve this problem
- Parameters not imported into Workbench 18.2 from Solidworks/Inventor
-
8700
-
4658
-
3151
-
1672
-
1446
© 2023 Copyright ANSYS, Inc. All rights reserved.