Skip to content

Instantly share code, notes, and snippets.

@luzpaz
luzpaz / gist:08290325bf6c482673e05688822d15d1
Created February 3, 2020 14:15
FreeCAD wiki command pages
[[Arch 3Views]]
[[Arch Add]]
[[Arch Axis]]
[[Arch AxisSystem]]
[[Arch Building]]
[[Arch BuildingPart]]
[[Arch Check]]
[[Arch CloneComponent]]
[[Arch CloseHoles]]
[[Arch CompAxis]]
@luzpaz
luzpaz / CheckDeps.py
Last active December 6, 2019 06:44
Check FreeCAD dependencies via python
#
# 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):
# -*- 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 October 17, 2019 03:46
Exploring the FreeCAD user.cfg file

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 May 3, 2022 13:33
FreeCAD-Addons Guidelines

How to update the FreeCAD-Addons repo

git pull

###############################################

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

# for repos with default branch named: 'master'
#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
@luzpaz
luzpaz / gist:b2f53085cefd5266dcce25efb5172630
Created March 10, 2018 12:36
test file for codespell
positon
He had a certain positon
Create an open source floatation tank
<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 February 16, 2018 15:38
Codespell America to British dictionary
artifact->artefact
artifacts->artefacts
behavior->behaviour
cancelation->cancellation
canceling->cancelling
canceled->cancelled
capitalize->capitalise
catalog->catalogue
centimeter->centimetre
centralize->centralise