Macro Honeycomb: Difference between revisions

From FreeCAD Documentation
(0.2022.02.14)
(2023.10.26 - Change to a .py file extension and eliminate need for making extra .py file)
Line 8: Line 8:
|Description=Create a fully parametric feature Python Honeycomb object, compatible in and outside of Part Design
|Description=Create a fully parametric feature Python Honeycomb object, compatible in and outside of Part Design
|Author=TheMarkster
|Author=TheMarkster
|Version=0.2022.02.14
|Version=0.2022.10.26
|Date=2022-02-14
|Date=2022-10-26
|FCVersion=Python 3 versions
|FCVersion=Python 3 versions
|Download=[https://wiki.freecadweb.org/File:Macro_Honeycomb.svg ToolBar Icon]
|Download=[https://wiki.freecadweb.org/File:Macro_Honeycomb.svg ToolBar Icon]
Line 32: Line 32:


</translate>
</translate>
{{Codeextralink|https://gist.github.com/mwganson/97d185ac2114701b26d3da47dccc9f7a/raw/e5ba077a671824a9908f4cb0ff178bf4502a2045/Honeycomb.FCMacro|Honeycomb.FCMacro}}
{{Codeextralink|https://gist.github.com/mwganson/97d185ac2114701b26d3da47dccc9f7a/raw/4f6fc56e9d2ffdef2cfc9031d9c0b57fa6e624b3/Honeycomb.py|Honeycomb.py}}
<translate>
<translate>


Line 46: Line 46:
'''Macro Honeycomb.FCMacro'''
'''Macro Honeycomb.FCMacro'''


{{CodeDownload|https://gist.github.com/mwganson/97d185ac2114701b26d3da47dccc9f7a|Honeycomb.FCMacro}}
{{CodeDownload|https://gist.github.com/mwganson/97d185ac2114701b26d3da47dccc9f7a|Honeycomb.py}}

Revision as of 18:57, 26 October 2023

Other languages:

Macro Honeycomb

Description
Create a fully parametric feature Python Honeycomb object, compatible in and outside of Part Design

Macro version: 0.2022.10.26
Last modified: 2022-10-26
FreeCAD version: Python 3 versions
Download: ToolBar Icon
Author: TheMarkster
Author
TheMarkster
Download
ToolBar Icon
Links
Macro Version
0.2022.10.26
Date last modified
2022-10-26
FreeCAD Version(s)
Python 3 versions
Default shortcut
None
See also
None

Description

Macro Honeycomb creates a fully parametric Honeycomb object that is compatible inside and outside of Part Design workbench. The honeycomb grid includes an optional border and can be either oval-shaped (elliptical) or rectangular. It is an update for and eventual replacement of Macro FCHoneycombMaker, which does not produce a feature Python object, but rather relies on a spreadsheet and some Draft arrays.

Full documentation can be found on github: Honeycomb.

Macro Honeycomb screenshot‎

Legend

Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon Manager. Link for optional manual installation: Macro


# This code is copied instead of the original macro code
# to guide the user to the online download page.
# Use it if the code of the macro is larger than 64 KB and cannot be included in the wiki
# or if the RAW code URL is somewhere else in the wiki.

from PySide import QtGui, QtCore

diag = QtGui.QMessageBox(QtGui.QMessageBox.Information,
    "Information",
    "This macro must be downloaded from this link\n"
    "\n"
    "https://gist.github.com/mwganson/97d185ac2114701b26d3da47dccc9f7a/raw/4f6fc56e9d2ffdef2cfc9031d9c0b57fa6e624b3/Honeycomb.py" + "\n"
    "\n"
    "Quit this window to access the download page")

diag.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
diag.setWindowModality(QtCore.Qt.ApplicationModal)
diag.exec_()

import webbrowser 
webbrowser.open("https://gist.github.com/mwganson/97d185ac2114701b26d3da47dccc9f7a/raw/4f6fc56e9d2ffdef2cfc9031d9c0b57fa6e624b3/Honeycomb.py")


ToolBar Icon

Script

Macro Honeycomb.FCMacro