Skip to content

davidwowa/FreeCAD

Repository files navigation

My macros for different jobs in FreeCAD

ObjectsSphereDistributor.FCMacro

Create figures in inkscape, and import as geometry in FreeCAD. With 'ObjectsSPhereDistributor' objects will random distribute over sphere inclusive collision detection.

Workflow

  1. Import as SVG-File you objects in FreeCAD
  2. Go in Part "Draft-Module"
  3. Select all Paths in Combo-View(left)
  4. Click on "Upgrade: Joins objects into a higher-level object"
  5. Go to "Part-Module" and select "Extrude: Extrudes planar faces of an object"
  6. Adjust the high of you object, set as example 40mm in Z-Axis
  7. Your sphere must have name "Halbkugel"
  8. Select all object for distribution
  9. Run macro

Sources:
Forum FreeCAD in german
Example for collision detection
How to calculate coordinates from sperical coordinates

Result:
Picture

On youtube:
Here a example how run stars in room
My lamp as example