Skip to content

FreeCAD Macro to Design a Corner Cube for the OSE Developer Test

Notifications You must be signed in to change notification settings

gbroques/ose-developer-test

Repository files navigation

OSE Developer Test

Programmatic solution to the OSE Developer Test.

Requirements

  • Import 8 hole tubing from OSE Part Library and build a cube
  • Fasten a bolt through one of the corners with a nut
  • Pocket initials into any face of any tube

OSE Developer Test

Pre-Requisites

Download Tubing Library by running the following shell script:

./download-tubing-library.sh

This should create a Tubing Library directory inside the ose-developer-test directory.

Usage

Import ose-developer-test.FCMacro into FreeCAD.

Dependencies

FreeCAD Version Information

OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 (Git)
Build type: Unknown
Branch: master
Hash: 690774c0effe4fd7b8d2b5e2fb2b8c8d145e21ce
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
Locale: English/UnitedStates (en_US)

Fasteners Workbench

This macro depends on the Fasteners Workbench and was tested with commit ab74422.

Limitations

  • Fasteners Workbench must be loaded in the FreeCAD GUI before executing the macro; otherwise you'll get the following error:
Traceback (most recent call last):
  File "path/to/ose-developer-test.FCMacro", line 345, in <module>
    main()
  File "path/to/ose-developer-test.FCMacro", line 45, in main
    create_bolt_and_nut_through_corner_of_cube(last_tube)
  File "path/to/ose-developer-test.FCMacro", line 146, in create_bolt_and_nut_through_corner_of_cube
    FreeCADGui.runCommand('FSISO4014')
<class 'Base.FreeCADError'>: No such command 'FSISO4014'
  • Selecting different tubing from the tubing library (e.g. 7 hole tubing.fcstd) doesn't properly align the bolt and nut through corner of cube

Future Development

Future development may include:

  • Allow users to select which tubing to create the cube with through the FreeCAD GUI (see Limitations)
  • Parameterize initials and allow a user to enter their initials in the FreeCAD GUI
    • This would likely involve using FreeCAD's Text feature rather than using the Sketcher workbench to manually layout geometries and constraints as suggested by OSE

Releases

No releases published

Packages

No packages published

Languages