How do I create a sketch from the free edges of a surface?

How do I create a sketch from the free edges of a surface?

Joshua.mursic
Advocate Advocate
390 Views
2 Replies
Message 1 of 3

How do I create a sketch from the free edges of a surface?

Joshua.mursic
Advocate
Advocate

Hello everyone,

 

I am trying to create a 3D sketch profile using the free edges of a surface. I saw in the documentation there is a 

createBrepEdgeProfile, but I could not seem to figure out how I am supposed to get it to create a sketch profile. Here is what I have so far, but I am not sure what to give "createBrepEdgeProfile" to make it work.

 

import adsk.core, adsk.fusion

def run(context):
    app = adsk.core.Application.get()
    ui  = app.userInterface
    product = app.activeProduct
    design = adsk.fusion.Design.cast(product)
    edges = adsk.fusion.BRepEdges.cast(product)

    component = design.allComponents.item(0)
    occurrence = component.occurrences.item(0)
    bBodies = occurrence.bRepBodies.item(0)
    edges = bBodies.edges
    
    component.createBRepEdgeProfile(edges)

 

 

 

0 Likes
391 Views
2 Replies
Replies (2)
Message 2 of 3

BrianEkins
Mentor
Mentor

What is it that you're trying to do that you need the profile?

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 3 of 3

Joshua.mursic
Advocate
Advocate
I have a very irregularly shaped surface and I would like to extend the free edges down so that they are all even and then create a flat surface on the bottom. I have tried the ruled offset, but the edges are not very clean and Fusion was giving errors when I tried to extend them. So I would like to get the free edges as a sketch and then project them onto a flat plane, and then use the surface loft function to bridge the 2 sketches.
0 Likes