Description |
---|
Gives information about the selected shape and can display a conversion of radius, diameter, length, area, volume ... in different units (metric and imperial) in a toolBar. The information to be displayed in real time is parametrizable in the Parameter of FreeCAD. Macro version: 00.05b Last modified: 2023/09/06 FreeCAD version: 0.18 and more Download: ToolBar Icon Author: Mario52 |
Author |
Mario52 |
Download |
ToolBar Icon |
Links |
Macros recipes How to install macros How to customize toolbars |
Macro Version |
00.05b |
Date last modified |
2023/09/06 |
FreeCAD Version(s) |
0.18 and more |
Default shortcut |
None |
See also |
Arch Survey, Macro FCInfo, Macro FCInfoGlass |
Gives information about the selected shape and can display a conversion of radius, diameter, length, area, volume ... in different units (metric and imperial) in a toolBar. The information to be displayed is parametrizable in the Parameter of FreeCAD.
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/e382adbe41747788ad15a18eb206a872/raw/c825afd430d9124a77f9688824d12a78b2219348/FCInfo_ToolBar.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/e382adbe41747788ad15a18eb206a872/raw/c825afd430d9124a77f9688824d12a78b2219348/FCInfo_ToolBar.FCMacro")
FCInfo_ToolBar
FCInfo ToolBar in action
After run the macro, go to Menu → Tools → Edit parameters ... :BaseApp/Preferences/Macros/FCMmacros/FCInfo_ToolBar
and check the info to display.
The complete info hare displayed in the ToolTip window, the checked option is visible if the "*" is displayed.
Use the button reset after change one option in the parameter window.
The Unit size can be selected : km, hm, dam, m, dm, cm, mm, µm, nm, pm, fm, inch, link, foot, yard, perch, chain, furlong, mile, league, nautique.
FCInfo_ToolBar the info toolTip
The options are located in the Parameter of FreeCAD:
Menu → Tools → Edit parameters ... :BaseApp/Preferences/Macros/FCMmacros/FCInfo_ToolBar
false
: the icon toolBar respect the FreeCAD value for the icon sizetrue
: the icon take the values of the variable seT_User_sizeIconX and seT_User_sizeIconYfalse
the info (this information) is not displayedtrue
the info is displayedIn your shortcut verify your right path
"Complete_path_of_FreeCAD" "Complete_path_of_the_macro.FCMacro"
example:
"C:/FreeCAD_0.20.26858_Win-LPv12.5.4_vc17.x-x86-64/bin/FreeCAD.exe" "C:/Users/User/AppData/Roaming/FreeCAD/Macro/FCInfo_ToolBar.FCMacro"
#### FC Version: 0.1 #16/02/2022
#### Mario52
#### FCInfo_ToolBar : mini FCInfo ####
#
import importlib
from importlib import reload
import FreeCAD, FreeCADGui
App = FreeCAD
Gui = FreeCADGui
switch_User_NotRunAuto = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Macros/FCMmacros/FCInfo_ToolBar").GetBool("switch_User_NotRunAuto")
## switch_User_NotRunAuto 0 (False) = run the macro in begin
## switch_User_NotRunAuto 1 (True) = not run automatic the macro
if switch_User_NotRunAuto == False:
import FCInfo_ToolBar
#reload(FCInfo_ToolBar)
FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Macros/FCMmacros/FCInfo_ToolBar").SetBool("switch_User_NotRunAuto", False)
#FreeCAD.Console.PrintMessage("InitGui Ok FCInfo_ToolBar" + "\n")
enjoy
The forum discussion Feature request: coordinates display
version 00.05b 06/09/2023 : correct bug calcul 2D Bmp
version 00.05 06/09/2023 : add coordinate 2D Cad (x, y) 0,0 = bottom left corner or Bmp (x, y) 0,0 = top left corner, radiusSurface
create the test "if" switch_User_NotInfoOnBeginning i forgot !!
version 00.04 28/06/2023 : correction styleSheet and:
sommeEdgesSTR = str(sommeEdges)
replaced by:
sommeEdgesSTR = str(round(sommeEdges * uniteM, seT_User_DecimalValue)) + " " + uniteMs
version: (00.02 +) 00.03 2022/03/22 : add somme all edges
version: 00.02 2022/03/14 : add calcul in real time (with preselection), dimension of toolBar, add info mesh and points
version: 00.01 2022/02/16 :