TAGGED: Moderator SpaceClaim, scripting, selection, spaceclaim
-
-
September 18, 2024 at 9:51 pmShyam Prasad V AtriSubscriber
Hey How do i select a curve made so that i can use it to create a tube while scripting?
(I have created a curve from a file)
# Create Sketch Cylinder
selection1 = ICurveSelection(GetRootPart().Curves[0])
result = TubeBody.Create(selection1, UM(1.00000096424072), ExtrudeType.None)
# EndBlockThis does not work. I have tried many different things. your documentation also is not telling me how to do the curve selection. Please let me know
Â
-
September 19, 2024 at 5:41 amAtharv JoshiForum ModeratorHi Shyam,ÂÂLet me check this and get back to you.ÂÂRegardsAtharv
-
September 19, 2024 at 5:58 amAtharv JoshiForum Moderator
So here you need to make changes the following changes and try.Â
Ensure that you can in 3D mode before running the script.ÂcurveSelList = Selection.Create(GetRootPart().Curves[0])
result=TubeBody.Create(curveSelList,MM(5),ExtrudeType.Add)You can also make the selection with the help of Curve Selection commoand.Â
curveSelList = CurveSelection.Create(GetRootPart().Curves[0])
RegardsAtharv -
September 19, 2024 at 7:10 pmShyam Prasad V AtriSubscriber
Sounds good thank you this worked for me
-
- The topic ‘Select a curve for creating tube script’ 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
- Overlapping contact face
- Thermoelectric Cooler Model
- Temperature’s Distribution not available in Refine Mode ?
- Issue Seeing Explore
- SpaceClaim stops sharing topology
-
1301
-
591
-
544
-
524
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.