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

sketch.projectCutEdges fails

designingberlin
Advocate

sketch.projectCutEdges fails

designingberlin
Advocate
Advocate

Hi,

 

I have a closed spline and a plane intersecting with this spline (2 times). I want to identify those point in the plane to generate loft guides for the profile. I start a new sketch in the plane and want to call

 

 

        sketch.projectCutEdges(profiles.item(0))

to get hold of the Points. The projectCutEdges expects a BRepBody as input.

So the question is how to generate a BRepBody from a SketchProfile or a SketchFittedSpline. This is seems to be done implicitle in the UI since the Point extraction works there with no issue.

 

Big Thanks,

Stefan

0 Likes
Reply
420 Views
6 Replies
Replies (6)

marshaltu
Autodesk
Autodesk

Hello,

 

There is no way to generate BRepBody from profile or spline. Back to your requirement, is it possible to project the plane to the sketch which closed spline is located at and use the projected line to trim the closed spline and get the "intersection" pointed you wanted? You may have to extend the projected line if it doesn't intersect with the closed spline. 

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes

designingberlin
Advocate
Advocate

Hi Marshal,

thanks for your suggestion, which seems to be quiet complicated, but doable.

 

My questions really is: What does the fusion UI do, if I do the 'project cut edges' in the new sketch in the new plane? It just works as expected. I assume there happens some kind of implicit conversion to allow the calculation of the plane/sketch intersection points. Just like the generation of a proxy object when applying joints between different components ...

 

Thanks,

Stefan

0 Likes

designingberlin
Advocate
Advocate

here is a short screencast of what I want to achieve with the projection ... it's so easy in the UI ...

 

0 Likes

marshaltu
Autodesk
Autodesk

Hello,

 

I got your point now. Unfortunately we haven't implement API for the "Intersect" command in sketch, which you were referring to. In that command, you do be able to intersect closed spline with sketch plane. 

 

The requirement was logged as UP-27980 in our internal system and but not treated as priority. We will reprioritize it.

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes

designingberlin
Advocate
Advocate

Ok, so the 'intersect' does not translate to the 'sketches.projectCutEdges' ? That's sad.

 

So one workaround would be to extrude the closed profile and call the 'sketches. projectCutEdges' with the BRepEdge of the extruded object?

 

Thanks,

Stefan

0 Likes

marshaltu
Autodesk
Autodesk

Hello,

 

The "intersect" command in sketch wasn't what we saw today when I implemented "sketches.projectCutEdges" API. We may use new API and keep the behavior of old one unchanged.

 

If you use extrude object to intersect with sketch plane, you would get curves(e.g. lines) instead of points after intersection. I am not sure if it can meet your requirement. You can maybe get better results to create patch object(surface) instead of extrude(solid) and intersect it with sketch plane.

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes