Patching the end of a surface extrusion - API Help

Patching the end of a surface extrusion - API Help

g732282
Explorer Explorer
239 Views
1 Reply
Message 1 of 2

Patching the end of a surface extrusion - API Help

g732282
Explorer
Explorer

To preface,  I'm pretty new with operating the Fusion360 API, so if this is a simple fix, my apologies! My current issue is that I am trying to create a patch feature on the end of a surface extrusion. In the documentation I'm seeing the reference to the 'Patch Features Sample', however, that example is grabbing the end face of the extrusion. Since what I'm working with is a surface extrusion, with zero thickness, it doesn't seem like there is an end face to grab. Is there a way to access the end profile of a surface extrusion? I've included a couple screen grabs of what I'm trying to do manually. First image has the edge highlighted in blue that I'm trying to patch. Thanks!

 

Screen Shot 2024-01-23 at 9.12.11 AM.pngScreen Shot 2024-01-23 at 9.12.44 AM.png

0 Likes
240 Views
1 Reply
Reply (1)
Message 2 of 2

christophe_gothier_guest
Explorer
Explorer

This topic is a bit old but I had the exact same issue. You can actually extract the created body of your surface extrusion with this:

extrudedProfileCercle = extrusionFace.bodies.item(0)

then use the edge :

            patchInput = patches.createInput(extrudedProfileCercle.edges.item(0),adsk.fusion.FeatureOperations.NewBodyFeatureOperation)
            patch = patches.add(patchInput)

There is 2 edge on the cylinder so if you have the patch on the wrong edge, replace the item(0) by item(1).

It should work.

 

Have a nice day