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.
CaptureSave
captures images of various points of view, saves them to the project's export directory, and then saves the project.
options
view
default value: "current"
type: Stringselects 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
default value: "export"
type: Stringsets the directory path for saving captured images, relative to the project directory.
reset_visibility
default value: false
type: Booleanforces visibility toggles on objects in the scene before the capture.
FlipView
flips the view front to back, while maintaining camera elevation, and focuses the view to fit.
RotateViewClockwise
similar to FlipView, but rotates the view clockwise.
RotateViewCounterclockwise
similar to FlipView, but rotates the view counterclockwise.