Macro FCBmpImport

From FreeCAD Documentation
Revision as of 16:37, 23 September 2021 by TheMarkster (talk | contribs) (create page for macro FCBmpImport)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:

Macro FCBmpImport

Description
Import BMP monochrome and grayscale images into FreeCAD as sketches, solids, wires, faces or lithophane.

Macro version: 0.2021.09.22
Last modified: 2021-09-22
FreeCAD version: All versions of FreeCAD
Download: ToolBar Icon
Author: TheMarkster
Author
TheMarkster
Download
ToolBar Icon
Links
Macro Version
0.2021.09.22
Date last modified
2021-09-22
FreeCAD Version(s)
All versions of FreeCAD
Default shortcut
None
See also

Description

This macro is used to import BMP images into FreeCAD as FreeCAD objects. Options for monochrome 1 bit per pixel images include importing as sketches, solids, wires, faces, or points. A grayscale BMP image can also be imported as a lithophane.

Full documentation can be found FCBmpImport on github.

FCBmpImport 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.githubusercontent.com/mwganson/ea7aa4dcb79d7492caa24e8970967174/raw/97adeb737d1e9ceeb53b4d95cec4d33c770e4a56/FCBmpImport.FCMacro" + "\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.githubusercontent.com/mwganson/ea7aa4dcb79d7492caa24e8970967174/raw/97adeb737d1e9ceeb53b4d95cec4d33c770e4a56/FCBmpImport.FCMacro")


ToolBar Icon

Script

Macro FCBmpImport.FCMacro