Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API vs UI projection

8 REPLIES 8
Reply
Message 1 of 9
teanau
1115 Views, 8 Replies

API vs UI projection

I want to project a body to gets its shilouette then project all faces with a specific normal.  

 

But it seems the api will only accept edges one at a time?

vs interacively i can select a body or a face to project?

 

This results in annoyingly fragmented dxf files that dont keep edge loops intact much like solidworks exports dxf files.

 

what black magic is going on under the hood of the interactive projection meathod? and how can i replicate them through the api?

thank you

_sam

8 REPLIES 8
Message 2 of 9
ekinsb
in reply to: teanau

Can you please provide more detail about the workflow that you're using in the user-interface?


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 3 of 9
teanau
in reply to: ekinsb

wow, that was an alarminglty quick reply, thanks

 

create a body  ( a panel of plywood with a few holes and pockets  cut in it )

create a sketch on a planar face

run the sketch > project command 

     select the bodies option and select the panel body ( results in a shilouette of the body projected )

run the sketch > project command 

      select a pocket face with a normal matching the sketch referecen face ( this projects all the faces edges connected as an edgeloop )

 

I may be doing something wrong, but i dont appear to be able to feed the API project anything but single edges

 

thanks for the support

_sam

Message 4 of 9
ekinsb
in reply to: teanau

The project method on the sketch should support taking a BRepBody object as input, but it currently does not.  I'll file a bug on that.  I don't remember if that capability was added to the product since we did that part of the API or if we just missed that in the initial implementation.

 

The project method does accept a BRepFace object as input but in my testing now I see that the result is not correct.  Instead of getting sketch entities for all of the edges of the face it's just getting one edge.  I'll file a bug for that too.  Thanks for reporting these.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 5 of 9
teanau
in reply to: ekinsb

Thanks for looking into these, this will be huge for me.

The behaviour you explain with faces is the same as what i experienced, i guess its the first edge of each face only.

 

all the best

_sam

Message 6 of 9
MattWynn
in reply to: ekinsb

yeah Brian, this is the same kind of thing we will be needing to do


Matt Wynn
Senior Manager, Software Development, Fusion Fabrication
Message 7 of 9
teanau
in reply to: MattWynn

curious, did this make it into tomorrows update?

Message 8 of 9
ekinsb
in reply to: teanau

Unfortunately we were too late to get it into tomorrow's update.  But the problem has been fixed and will be available in the next update, which is currently scheduled for the end of May.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
Message 9 of 9
teanau
in reply to: ekinsb

can i give you more than one kudos?

 thats great news and i really appreciate the info

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report