Skip to content

Instantly share code, notes, and snippets.

@mario52a
mario52a / Macro_DXF_to_Shape.FCMacro
Last active Sep 4, 2020
Macro utility for create unique wire with many wires, the type wire created is selected to MakeWire, Bspline, BsplineCurve, BsplineCurve + Arc, Polygon, Bezier curve
View Macro_DXF_to_Shape.FCMacro
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""
***************************************************************************
* Copyright (c) 2016 2017 2018 2019 2020 <mario52> *
* *
* This file is a supplement to the FreeCAD CAx development system. *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License (LGPL) *
@mario52a
mario52a / Macro_Compound_Plus.FCMacro
Last active Aug 15, 2020
Draf command set in a small macro for the 2D sketch example : files DXF
View Macro_Compound_Plus.FCMacro
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""
***************************************************************************
* Copyright (c) 2016 2017 2018 1019 2020 <mario52> *
* *
* This file is a supplement to the FreeCAD CAx development system. *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License (LGPL) *
@mario52a
mario52a / Macro_FCWire_To_Volume.FCMacro
Last active Apr 11, 2020
This macro create on object boolean with the object Draft selected.
View Macro_FCWire_To_Volume.FCMacro
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
#
"""
***************************************************************************
* Copyright (c) 2016 2017 2018 2019 2020 <mario52> *
* *
* This file is a supplement to the FreeCAD CAx development system. *
* *
* This program is free software; you can redistribute it and/or modify *
@mario52a
mario52a / Macro_Copy3DViewToClipboard.FCMacro
Created Sep 20, 2016
Macro will copy the contents of the 3D view to the clipboard
View Macro_Copy3DViewToClipboard.FCMacro
# -*- coding: utf-8 -*-
import PySide
from PySide.QtGui import *
from PySide import QtGui ,QtCore
from PySide import QtOpenGL
#from gimpfu import *
__title__ = "Macro_Copy3DViewToClipboard"
__author__ = "Mario52"
__url__ = "http://www.freecadweb.org/index-fr.html"
@mario52a
mario52a / Macro_CloneConvert.FCMacro
Last active Jun 6, 2020
Creates a clone or copy of the object and the converted in the chosen position and size (inch, mm, m, µm...) or free. The base object is recognized in mm (FreeCAd base)
View Macro_CloneConvert.FCMacro
# -*- coding: utf-8 -*-
# CloneConvert.FCMacro
# Cree un clone ou une copie de l'objet ou des objets selectionne(s) et le met e l'echelle de la grandeur choisie
# utilisation : lancer CloneConvert selectionnez un objet choisissez la grandeur et cliquez sur OK
#
# Creates a clone of one copy the selected object and updates the selected size range
# use: start CloneConvert select an object choose the size and click OK
#
#OS: Windows 10 (10.0)
@mario52a
mario52a / Macro_FCCreaLoft.FCMacro
Last active Jul 3, 2019
Specially written for easy lofting with lines generated by the Macro Texture (but may be suitable and used for common lofts)
View Macro_FCCreaLoft.FCMacro
# -*- coding: utf-8 -*-
"""
***************************************************************************
* Copyright (c) 2016 2017 2018 2019 <mario52> *
* *
* This file is a supplement to the FreeCAD CAx development system. *
* *
* 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 *
@mario52a
mario52a / Macro_Copy3DViewToClipboard.FCMacro
Created Sep 15, 2016
Macro will copy the contents of the 3D view to the clipboard
View Macro_Copy3DViewToClipboard.FCMacro
# -*- coding: utf-8 -*-
import PySide
from PySide.QtGui import *
from PySide import QtGui ,QtCore
from PySide import QtOpenGL
#from gimpfu import *
__title__ = "Macro_Copy3DViewToClipboard"
__author__ = "Mario52"
__url__ = "http://www.freecadweb.org/index-fr.html"
@mario52a
mario52a / Macro_Make_Arc_3_points.FCMacro
Last active Jul 14, 2016
Creates a arc from 3 selected points
View Macro_Make_Arc_3_points.FCMacro
# -*- coding: utf-8 -*-
from FreeCAD import Base
__title__ = "Macro_Make_Arc_3_points"
__author__ = "Mario52"
__url__ = "http://www.freecadweb.org/index-fr.html"
__version__ = "00.01"
__date__ = "14/07/2016"
global selected; selected = []
@mario52a
mario52a / Macro_Duplicate_Selection.FCMacro
Created Jun 7, 2016
Start the macro select the object IN THE 3D VIEW the "ForbiddenCursor" stay if the or one selection is duplicate the macro stay resident
View Macro_Duplicate_Selection.FCMacro
# -*- coding: utf-8 -*-
import FreeCADGui
import PySide
from PySide import QtGui ,QtCore
from PySide.QtGui import *
from PySide.QtCore import *
__title__ = "Macro_Duplicate_Selection"
__author__ = "Mario52"
__url__ = "http://www.freecadweb.org/index-fr.html"
@mario52a
mario52a / Macro_Connect_And_Sweep.FCMacro
Last active Sep 19, 2020
This macro easily creates a connection between two objects, an object and a point or between two points (the center of the objects are the starting and ending points of the sweep) can be selected form a configurable ellipse polygon circle
View Macro_Connect_And_Sweep.FCMacro
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""
***************************************************************************
* Copyright (c) 2016 2017 2018 2019 2020 <mario52> *
* *
* This file is a supplement to the FreeCAD CAx development system. *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License (LGPL) *
You can’t perform that action at this time.