TAGGED: Guide Curves, skripts, spaceclaim, sweep
-
-
August 28, 2023 at 7:05 amLukas BülowSubscriber
Hello everyone,
I have already created a post in this forum where the topic was addressed. Unfortunately, the post is categorized under "3D-Modelling" and not scripting, so I'm hoping to get an answer to my question here. You can find the link to the old post here:
https://discoveryforum.ansys.com/t/p8hvzkv
In short, my problem is to pull a profile along two guide curves that both run parallel. This is not a problem in 3D modeling, but I can't find a command for a second guide curve in scripting. I have also written to support and combed through the SpaceClaim documentation, but unfortunately, I couldn't find anything. Sadly, you also can't capture this command using the "Record" function.
I hope you can help me! Thank you and best regards.
Lukas -
August 28, 2023 at 8:07 amCharudatta BandgarForum Moderator
Hello Lukas,
Let me get back to you.
-
August 28, 2023 at 7:25 pmLukas BülowSubscriber
I think I’m slowly going crazy…
I can select different things like connected lines, or multiple faces to pull, but parallel lines or generally two lines that aren’t connected can’t be selected via code.selection = FaceSelection.Create([GetRootPart().Bodies[1].Faces[0],
                                                      GetRootPart().Bodies[0].Faces[0]])Â
trajectories = Selection.Create(GetRootPart().Curves[0],
                                                GetRootPart().Curves[2]) -
September 4, 2023 at 4:46 pmLukas BülowSubscriber
After a long time, I have found a solution to this problem myself; the magic word is "Loft". In my case, there is the option to redraw the profile at the location where the endpoint of the body needs to be (which is known), and then use the Loft command to connect the two surfaces with the help of a guide line. The corresponding code then looks as follows:
selection = FaceSelection.Create([GetRootPart().Faces[0],GetRootPart().Faces[1]]) secondarySelection = Selection.Create(GetRootPart().Curves[0]) options = LoftOptions() options.GeometryCommandOptions = GeometryCommandOptions() result = Loft.CreateCenterLine(selection, secondarySelection, options)
-
- The topic ‘Skripting: Sweeping with 2 Guidecurves’ 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.