Skip to content

Latest commit

 

History

History

assembly2cad

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Assembly2CAD

Assembly2CAD

Assembly2CAD demonstrates how to build a Fusion 360 CAD model from the assembly data provided with the Assembly Dataset. The resulting CAD model has a complete assembly tree and fully specified parametric joints.

Running

Assembly2CAD runs in Fusion 360 as a script with the following steps.

  1. Follow the general instructions here to get setup with Fusion 360.
  2. Optionally change the assembly_file in assembly2cad.py to point towards an assembly.json provided with the Assembly Dataset.
  3. Optionally change the png_file and f3d_file in assembly2cad.py to your preferred name for each file that is exported.
  4. Run the assembly2cad.py script from within Fusion 360. When the script has finished running the design will be open in Fusion 360.
  5. Check the contents of assembly2cad/ directory to find the .f3d that was exported.

How it Works

If you look into the code you will notice that the hard work is performed by assembly_importer.py and does the following:

  1. Opens and reads assembly.json.
  2. Gets a list of all .smt files are in the directory where assembly.json is located.
  3. Looks into the root data of assembly.json and creates brep bodies from the smt files at the root level.
  4. Looks into tree and occurrences data of the assembly.json and creates components/occurrences by importing the appropriate .smt files.
  5. After the assembly tree is built it creates joints if specified in assembly.json.