TAGGED: scripting, spaceclaim
-
-
March 13, 2023 at 1:43 pmMatthew 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 amDevendra BadgujarForum Moderator
Hello 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 amMatthew 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 amDevendra BadgujarForum Moderator
Matthew Westlake
Is it possible for you to share the script you are using, I will check if I am able to reproduce it.
-
-
- The topic ‘Spaceclaim script sketching coordinates flipped’ is closed to new replies.
- 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
- Thermoelectric Cooler Model
- Temperature’s Distribution not available in Refine Mode ?
- Issue Seeing Explore
-
1301
-
591
-
544
-
524
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.