Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Extrude with start offset plane

brad.bylls
Collaborator

Extrude with start offset plane

brad.bylls
Collaborator
Collaborator

I am using the 'Bolt' example to create a cap screw.

All is going well until I want to cut the hex in the head.

No problem cutting the hex, but I want it to start with an offset from the plane.

My code so far to cut the hex:

prof = sketch.profiles[0]
        extInput = extrudes.createInput(prof, adsk.fusion.FeatureOperations.CutFeatureOperation)

        distance = adsk.core.ValueInput.createByReal(self.headHeight*-1)
        extInput.setDistanceExtent(False, distance)
        headExt = extrudes.add(extInput)
What I can't figure out is how to offset the start plane to distance*.4 and finish at distance
Any help is appreciated.
Thank you.
Brad Bylls
0 Likes
Reply
Accepted solutions (1)
600 Views
4 Replies
Replies (4)

goyals
Autodesk
Autodesk
Accepted solution

There is API method available to offset the plane. Please take a look at http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-a4f85da0-15bd-480e-af9a-d9355ebbad08



Shyam Goyal
Sr. Software Dev. Manager
0 Likes

BrianEkins
Mentor
Mentor

This should be possible by create an extrusion with two extents and the first extent is defined by an 

OffsetStartDefinition object.  I tried this and it's not working correctly.  Autodesk has logged a bug and hopefully it will be addressed soon.
---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes

brad.bylls
Collaborator
Collaborator
Thanks for the help.
Brad Bylls
0 Likes

brad.bylls
Collaborator
Collaborator

Thanks Brian.

Brad Bylls
0 Likes