TAGGED: Moderator SpaceClaim, scripting, selection, spaceclaim
-
-
September 18, 2024 at 9:51 pmShyam Prasad V AtriBbp_participant
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
-
- You must be logged in to reply to this topic.
-
421
-
192
-
178
-
162
-
140
© 2024 Copyright ANSYS, Inc. All rights reserved.