Message 1 of 2
Accesing an existing feature (body)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I would like to work with an existing extruded body. My goal is to be able to take an existing body, the same way I can take an existing sketch and manipulate it.
My end-goal is to:
- manually create a sketch (airfoil shape)
- access it and extrude it
- export .step file
- let external software evaluate it and give me new information for the sketch
- delete existing extruded body
- edit existing sketch with new information
- extrude it again and so on (Iteration)
The way I am now taking the existing sketch (This works)
# Take existing sketch
aerofoil = root.sketches.item(0)
# Take profile
prof = aerofoil.profiles.item(0)
Here I am taking similar aproach to existing extruded body (Doesn't work)
body = root.features.item(0)
removeFeat = removeFeatures.add(body)
The reason I am trying to delete the existing body, is to not have overlapping bodies when new extrusion is done on the edited sketch.