Skip to content

Instantly share code, notes, and snippets.

@luzpaz
luzpaz / CheckDeps.py
Last active Dec 6, 2019
Check FreeCAD dependencies via python
View CheckDeps.py
#
# Script to pythonically determine 3rd party dependencies in FreeCAD
#
# Some code borrowed from https://github.com/jaheyns/CfdOF/blob/master/CfdTools.py
# also suggestion from https://forum.freecadweb.org/viewtopic.php?f=22&t=40522
import FreeCAD
import subprocess as sub
def checkFCVersion(term_print=True):
View AddonMangerHeadless.py
# -*- coding: utf-8 -*-
# FreeCAD Headless AddonManager test
# (c) 2019 FreeCAD community LGPL
"""
The module can be executed with:
./FreeCAD.AppImage -c <path_to_file> AddonManagerHeadless.py
Note:
In order to test updates, it possible to use git reset --hard HEAD~1
@luzpaz
luzpaz / user.cfg.md
Last active Oct 17, 2019
Exploring the FreeCAD user.cfg file
View user.cfg.md

FreeCAD Power User Mode

This document is a study on how the FreeCAD user.cfg is constructed.
The intention is to create customizable .cfg files that Power Users can utilize and share with each other. Possibly even an automation feature that allows the user to install FreeCAD with pre-installed addons, but lets not get ahead of ourselves.

Misc. Preferences

This is a list of various preferences/configurations that can be tweaked via user.cfg.

@luzpaz
luzpaz / FreeCAD-Addons-Workflow.md
Last active Sep 6, 2021
FreeCAD-Addons Guidelines
View FreeCAD-Addons-Workflow.md

How to update the FreeCAD-Addons repo

git pull

# git submodule foreach git checkout master
# Skip certain submodules https://stackoverflow.com/a/58292036

git submodule foreach 'case $name in MnesarcoUtils|SlopedPlanesMacro|Design456|OpticsWorkbench) ;; *) git checkout master ;; esac'

# git submodule foreach git pull
View gist:eef75e1cd59af8a58c7bb3912e1a51ae
#Creation of a Geneva Wheel with Parametric values By: Isaac Ayala (drei) & Mark Stephen (quick61)
#This Macro creates the main parts of a Geneva Wheel Mechanism
#It depends on six values that must be altered in the following code
#The variables are a, b, n, p, t and h.
#Definition for each variable
# Input
#a = Drive Crank Radius
#b = Geneva Wheel Radius
View phpbb fc toolbar fontawesome icons
<i class="icon fas fa-align-center" aria-hidden="true"></i>
<i class="icon fas fa-strikethrough" aria-hidden="true"></i>
<i class="icon fas fa-bug" aria-hidden="true"></i>
<i class="icon fab fa-git" aria-hidden="true"></i>
<i class="fa fa-video-camera" aria-hidden="true"></i>
@luzpaz
luzpaz / American2British-dictionary.txt
Last active Feb 16, 2018
Codespell America to British dictionary
View American2British-dictionary.txt
artifact->artefact
artifacts->artefacts
behavior->behaviour
cancelation->cancellation
canceling->cancelling
canceled->cancelled
capitalize->capitalise
catalog->catalogue
centimeter->centimetre
centralize->centralise
@luzpaz
luzpaz / british2american-dictionary.txt
Last active Feb 16, 2018
Codespell British to English
View british2american-dictionary.txt
artefact->artifact
artefacts->artifacts
behaviour->behavior
cancellation->cancelation
cancelling->canceling
cancelled->canceled
capitalise->capitalize
catalogue->catalog
centimetre->centimeter
centralise->centralize