Message 1 of 7
Revolve an arc to form a patch surface

Not applicable
07-21-2019
09:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I'm trying to revolve an arc around an axis (picture above) to form a patch surface of a half sphere. I tried to create the revolve feature using profile, but since the arc isn't a profile, I created an ObjectCollection for it. But I got the following error:
RunTimeError: 3: invalid profile(s) for Revolve Feature.
Anyone can advise how to revolve an arc to form a patch surface? Below is my code:
# Create the axis of rotation and the arc sketch3 = rootComp.sketches.add(rootComp.yZConstructionPlane) lines = sketch3.sketchCurves.sketchLines axis = lines.addByTwoPoints(adsk.core.Point3D.create(-5.5,2.3,0), adsk.core.Point3D.create(-5.5,8,0)) arcs = sketch3.sketchCurves.sketchArcs center = adsk.core.Point3D.create(-5.5,2.3,0) start = adsk.core.Point3D.create(-5.5,9.3,0) ang = math.pi arc = arcs.addByCenterStartSweep(center, start, ang) # Create a revolve patch prof = adsk.core.ObjectCollection.create() prof.add(sketch3.sketchCurves.item(0)) revolves = rootComp.features.revolveFeatures revInput = revolves.createInput(prof, axis, adsk.fusion.FeatureOperations.NewBodyFeatureOperation) revInput.setAngleExtent(True, math.pi/4) revInput.isSolid = False revolves.add(revInput)
Thank you!!