Skip to content

Instantly share code, notes, and snippets.

@mario52a
mario52a / Delta_XYZ
Last active Oct 23, 2020
Gives the Delta values and distance between 2 points. If the SHIFT key is pressed, the Delta value begin on coordinate 0,0,0 to point clicked (the coordinate 0,0,0 is displayed in red).
View Delta_XYZ
# -*- coding: utf-8 -*-
#Delta x y z Click Q to quit
#
#OS: Windows 10 (10.0)
#Word size of OS: 64-bit
#Word size of FreeCAD: 64-bit
#Version: 0.19.22808 (Git)
#Build type: Release
#Branch: master
#Hash: 72eb41b24f12b572d55081042160954b93f4614c
@mario52a
mario52a / Macro_Screen_Wiki.FCMacro
Last active Jun 1, 2020
This macro allows to save the 3D view in the desired format. The 3D view or the full 3D window of FreeCAD takes the desired dimensions. A rotation of the selected object or of the 3D view is possible to give a rotation angle the number of images is calculated automatically it is possible to give a departure angle and an arrival angle. You must u…
View Macro_Screen_Wiki.FCMacro
# -*- coding: utf-8 -*-
"""
***************************************************************************
* Copyright (c) 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) *
* as published by the Free Software Foundation; either version 2 of *
@mario52a
mario52a / Macro_FCSpring_On_Surface.FCMacro
Created Dec 20, 2019
This macro creates a helix around a solid object whatever its shape, the helix follows the entire surface of the object. (Python2 is request)
View Macro_FCSpring_On_Surface.FCMacro
# -*- coding: utf-8 -*-
#from __future__ import unicode_literals
#
"""
***************************************************************************
* Copyright (c) 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 *
@mario52a
mario52a / Macro_Fonts_Win10_PYMP.FCMacro
Last active Jun 6, 2020
This little macro is dedicate to users of Windows 10 (and other). The explorer fonts for use the ShapeString is empty and this little macro can help you see aesily the font to use.
View Macro_Fonts_Win10_PYMP.FCMacro
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""
***************************************************************************
* Copyright (c) 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 CirclePlus.FCMacro
Last active Apr 7, 2019
This small macro create a circle or arc giving radius, diameter, circumference, area, startangle, endangle, arc, anglecenter, cord, arrow, center (point), placemObject on choice. And ccreate sector.
View Macro CirclePlus.FCMacro
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
#
"""
***************************************************************************
* Copyright (c) 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 *
@mario52a
mario52a / Macro_FCSpreadSheet_Extract.FCMacro
Last active Apr 10, 2020
This macro save the spreadsheet data in a csv file with the formula or in a xml file.
View Macro_FCSpreadSheet_Extract.FCMacro
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""
***************************************************************************
* Copyright (c) 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 Select Hovering.FCMacro
Last active Dec 26, 2017
This macro select a choice Face, Edge, Vertex hovering by the mouse.
View Macro Select Hovering.FCMacro
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
#
"""
***************************************************************************
* Copyright (c) 2017 <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_FCTreeView.FCMacro
Last active Sep 24, 2020
Macro for list all objects in the project in one list without hierarchy, options sort by name, label, visibility, group, by length option search by name, label .... without case sensitive or with case sensitive and select all objects displayed in the macro window.
View Macro_FCTreeView.FCMacro
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
#
"""
***************************************************************************
* Copyright (c) 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 Rotate To Point.FCMacro
Last active Mar 7, 2020
Macro for rotate on object on itself with the axis of rotation the boundbox center, center of mass or last point clicked
View Macro Rotate To Point.FCMacro
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""
***************************************************************************
* Copyright (c) 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_Perpendicular_To_Wire.FCMacro
Last active Jun 22, 2019
This macro positioned your object perpendicularly to wire selected.
View Macro_Perpendicular_To_Wire.FCMacro
# -*- coding: utf-8 -*-
__title__ = "Macro Perpendicular To Wire"
__author__ = "Mario52"
__url__ = "https://www.freecadweb.org/wiki/index.php?title=Macro_Perpendicular_To_Wire"
__version__ = "00.02"
__date__ = "06/04/2019"
import Draft, Part
try:
You can’t perform that action at this time.