Message 1 of 3
Modify radius of solid body (cylinder/sphere)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I am trying to modify radius of curved body (cylinder/sphere) via API. I have tried the OffsetFeatures in the documentation but it seemed to offset the surface ONLY instead of the whole body.
I have used the sample code in the documentation:
def demo_offsetFeatures_add(rootComp: adsk.fusion.Design.rootComponent):
offsetFace = _ui.selectEntity('Select the face to offset.', 'Faces').entity
offsetFaces = adsk.core.ObjectCollection.create()
offsetFaces.add(offsetFace)
distance = adsk.core.ValueInput.createByReal(2)
operation = adsk.fusion.FeatureOperations.NewBodyFeatureOperation
offsetFeatures = rootComp.features.offsetFeatures
input = offsetFeatures.createInput(offsetFaces, distance, operation)
offsetFeature = offsetFeatures.add(input)
This results in a new surface body.
Is there any way to modify the radius of the solid body? Any help is appreciated!