How to import STEP-file in assembly?

How to import STEP-file in assembly?

Anonymous
Not applicable
4,066 Views
11 Replies
Message 1 of 12

How to import STEP-file in assembly?

Anonymous
Not applicable

Hello,

I am working a a script that reads a file PCB file from the electrical CAD software EAGLE and creates a mechanical compoment from it. To see how far I went, look at the attached file. 

 

What is missing now is to place the actual components. Most manufacturers from electrical connectors already offer STEP-Files of their products so my goal is to make my script read those 3D-models and place them on my PCB.

 

Unfortunately, I have no clue how to do this. Can you give a minimal example on how to import and place a STEP-file? Bonus question: Is it possible at all to import a STEP-file from the local hard drive or needs the STEP-file to be in A360 already? 

0 Likes
4,067 Views
11 Replies
Replies (11)
Message 2 of 12

prainsberry
Autodesk
Autodesk

Very cool.  We actually just wrote a script to import IDF files and create all of the components based on their outlines in Eagle.  We are looking into something that will also allow importing step files.  

 

Currently we do not support model import through the API, unfortunately.  If you want I can send you the script we did to import IDF files.  Planning to publish it soon.

 

 



Patrick Rainsberry
Developer Advocate, Fusion 360
0 Likes
Message 3 of 12

Anonymous
Not applicable

Thank you for your fast answer! If importing models is not possible, are there any workarounds you can think of? Is placing another Fusion360 part through the API possible? My goal is to have a 3D-Modell that contains outline of connectors that are angled to the pcb. As far as I know, IDF only has a prism for each component, so a round connector that is not perpendicular to the board would show up as a box and the information of position and diameter of the axis of the connector is lost. This way it is not possible the create the cutouts in the frontpanel.

 

Your IDF-Script would be definetely interesting because although my script works, it takes a while to complete and I am sure you did some performance improvements.

 

In fact, EAGLE 7 has an IDF-export and they also offer a website where you can upload your IDF and replace the boxes with actual step files but the whole is complicated. My scripts does not require and IDF export,

 

 

0 Likes
Message 4 of 12

prainsberry
Autodesk
Autodesk

We are actively working on a solution for this need and should hopefully have more to share as we zero in on a solution in the next couple months.  

 

Actually the script I have is fairly slow too.  Problem is that the javascript API runs out of process and for heavy modeling operations is a little slow.  If it had been done in Python I believe it would be much faster.  

 

Which language are you working in?



Patrick Rainsberry
Developer Advocate, Fusion 360
0 Likes
Message 5 of 12

Anonymous
Not applicable

Hello,

I am using python for my script. My script is rather slow because I create a Hole-feature for each drill in the PCB so I am creating a large number of features. Maybe grouping all drills of the same diameter in one sketch an creating only one hole feature per diameter will speed everything.

 

I am looking forward for a solution to import STEP-files in further versions.

0 Likes
Message 6 of 12

Roman_Vesely
Autodesk
Autodesk

Hi jaegeraxel,

 

 are you able to insert Design documents from Data Panel from your script ? If so, you can use this workaround:

1) Create some Project and potentialy folder inside

2) Use Upload command and Upload all requested STEP files to this folder

Select Files for Upload.png

 

 

STEP files.png

3) Once it will be Uploaded and Translated you should see all these files as Fusion Design documents

4) You can Insert them to the Assembly by script

 

Regards

 Roman

Fusion QA team



Roman Vesely

Inventor - Principal QA Engineer
0 Likes
Message 7 of 12

Anonymous
Not applicable

Can you give an example how to do step 4 using a script?

 

Uploading the library of parts and having them as fusion documents is a perfectly acceptable solution.

0 Likes
Message 8 of 12

ekinsb
Alumni
Alumni

Unfortunately step 4 is not currently possible.  There are plans to add this capability in the future but it's not currently possible and also isn't in the next release.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 9 of 12

Anonymous
Not applicable

Ok for the first shot and until step 4 is possible, I will try the following workaround: I manually add the components of interest to an assembly and my scripts just moves them to the right position. 

0 Likes
Message 10 of 12

robduarte
Collaborator
Collaborator

@prainsberry wrote:

Very cool.  We actually just wrote a script to import IDF files and create all of the components based on their outlines in Eagle.  We are looking into something that will also allow importing step files.  

 

Currently we do not support model import through the API, unfortunately.  If you want I can send you the script we did to import IDF files.  Planning to publish it soon.

 

 


 

I'm interested in getting a copy of the script.

Rob Duarte
Associate Professor in Art, Florida State University
Co-Director FSU Facility for Arts Research
http://art.fsu.edu/rob-duarte/

Twitter | YouTube

0 Likes
Message 11 of 12

prainsberry
Autodesk
Autodesk
Actually we are having a bit of an issue with it in the current release. We are hoping to have it fixed for the May update and will be posting it publicly at that time. Sorry about that

Regards,
Patrick Rainsberry


Patrick Rainsberry
Developer Advocate, Fusion 360
0 Likes
Message 12 of 12

robduarte
Collaborator
Collaborator
Thanks for the update

Rob Duarte
Associate Professor in Art, Florida State University
Co-Director FSU Facility for Arts Research
http://art.fsu.edu/rob-duarte/

Twitter | YouTube

0 Likes