| Description |
|---|
| Create the resistance, give the value or the color code, you can also calculate the total value with a serial or parallel resistance Macro version: 0.1 Last modified: 2025/12/12 FreeCAD version: 1.00 and above Download: Macro icon: [1] Author: Mario52 |
| Author |
| Mario52 |
| Download |
| Macro icon: [2] |
| Links |
| Macros recipes How to install macros How to customize toolbars |
| Macro Version |
| 0.1 |
| Date last modified |
| 2025/12/12 |
| FreeCAD Version(s) |
| 1.00 and above |
| Default shortcut |
| None |
| See also |
| None |
Create the resistance, give the value or the color code, you can also calculate the total value with a serial or parallel resistance.
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/mario52a/cfce0b58e62b036e910be0e503b14b80/raw/0b75dacf6d0a12885c7920b01f89490ba7664565/code_Colors_Resistance.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/mario52a/cfce0b58e62b036e910be0e503b14b80/raw/0b75dacf6d0a12885c7920b01f89490ba7664565/code_Colors_Resistance.FCMacro")
Main window code colors resistance
ver: 0.1a : 12/12/2025 : add link and change line 812:
#obj_Obj[i].ViewObject.DiffuseColor = colors
FreeCAD.ActiveDocument.getObject(obj_Obj[i].Name).ViewObject.DiffuseColor = colors
FreeCAD.ActiveDocument.getObject(obj_Obj[i].Name).ViewObject.Transparency = 0