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.
- FSAE CFD – Lesson 1 Preparation question (Using Discovery)
- Project lines/edges into a face with the direction normal to the face
- Script for subtracting models
- Multiple Instances of SpaceClaim taking multiple licenses
- No preview in explorer with scdox file
- Spaceclaim file reference error
- Issues after installing new service pack 2024R1 (sp5)
- Add-in Error Excel
- Problems with loading my Discovery Mesh into Fluent
- Missing SubDivWrapper.dll
-
3882
-
1414
-
1241
-
1118
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.