Message 1 of 3
How do I create a sketch from the free edges of a surface?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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)