TAGGED: Moderator SpaceClaim, scripting, selection, spaceclaim
-
-
September 18, 2024 at 9:51 pm
Shyam Prasad V Atri
SubscriberHey 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 am
Atharv Joshi
Forum ModeratorHi Shyam,ÂÂLet me check this and get back to you.ÂÂRegardsAtharv -
September 19, 2024 at 5:58 am
Atharv Joshi
Forum ModeratorSo 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 pm
Shyam Prasad V Atri
SubscriberSounds good thank you this worked for me
-
- The topic ‘Select a curve for creating tube script’ is closed to new replies.
-
3044
-
971
-
858
-
852
-
792
© 2025 Copyright ANSYS, Inc. All rights reserved.