Code Monkey home page Code Monkey logo

freecad-macros's Introduction

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.

CaptureSave

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.

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.

freecad-macros's People

Contributors

eliranmal avatar

Stargazers

 avatar

Watchers

 avatar  avatar

freecad-macros's Issues

[CaptureSave] add image captures of sections

research

  • use Part WB CrossSections for section views snapped (parallel) to the default origin axis vectors
  • use Sketcher WB ViewSection for arbitrarily orientated section datum planes
    debunked: impractical for image capturing, this produces lazy rendered section corners, with visible glitches
    debunk debunked (maybe): check if using solid: true on padded nodes fixes this issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.