Skip to content

eliranmal/freecad-macros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 

Repository files navigation

tested on: my box alone FreeCAD forums browsed: 281,894 who's your uncle: bob

FreeCAD macros   some much needed macros for FreeCAD

💻 📐 🤖

setup

  • download or clone this reopsitory, and keep it somewhere accessible on your drive
  • run the install script. if you have a custom user macros directory, pass it as the first argument
  • bob is you uncle

macros

as a general note, macro options can be passed as json via the document comment input field. see each macro's description for supported options.

captures images of various points of view, saves them to the project's export directory, and then saves the project.

options

view
type: String
default value: "current"

selects the desired camera view to be captured.
possible values: "left", "right", "top", "bottom", "front", "rear", "iso", "iso-flipped", "iso-cw", "iso-ccw", "all" (which includes all of the above), "current".

export_dir
type: String
default value: "export"

sets the directory path for saving captured images, relative to the project directory.

reset_visibility
type: Boolean
default value: false

forces visibility toggles on objects in the scene before the capture.

flips the view front to back, while maintaining camera elevation, and focuses the view to fit.

similar to FlipView, but rotates the view clockwise.

similar to FlipView, but rotates the view counterclockwise.