Skip to content

Instantly share code, notes, and snippets.

from __future__ import division
import Part
import math as mt
from FreeCAD import Base
from FreeCAD import Gui
def PerfSheet(L,H,W,R,Type="circle", s=1/5):
HoleSK=App.ActiveDocument.addObject('Sketcher::SketchObject','SheetPerforationHoles')
HoleSK.Placement = App.Placement(App.Vector(0.000000,0.000000,0.000000),App.Rotation(0.000000,0.000000,0.000000,1.000000))
@JMG-SP
JMG-SP / WorkFeatures Macro V1
Created May 10, 2014 13:00
WorkFeatures Macro V1
# -*- coding: utf-8 -*-
# FreeCAD Work Features
# (c) 2014 Javier Martínez García
#***************************************************************************
#* (c) Javier Martínez García 2014 *
#* *
#* This program is free software; you can redistribute it and/or modify *
#* it under the terms of the GNU Lesser General Public License (LGPL) *
#* as published by the Free Software Foundation; either version 2 of *