| Description |
|---|
| 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. Macro FCTreeView Icon package unzip the .zip file and copy the icon in your macro directory. Macro version: 00.10b Last modified: 2025-07-04 FreeCAD version: 0.18 and below Download: ToolBar Icon Author: Mario52 |
| Author |
| Mario52 |
| Download |
| ToolBar Icon |
| Links |
| Macros recipes How to install macros How to customize toolbars |
| Macro Version |
| 00.10b |
| Date last modified |
| 2025-07-04 |
| FreeCAD Version(s) |
| 0.18 and below |
| Default shortcut |
| None |
| See also |
| None |
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.
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/67517ef758ff20005d0a6adcfd8c9190/raw/c3706833f2534272107292de6a183bc6e07447cb/Macro_FCTreeView.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/67517ef758ff20005d0a6adcfd8c9190/raw/c3706833f2534272107292de6a183bc6e07447cb/Macro_FCTreeView.FCMacro")
The title display the option, number and type object(s) displayed
If one object are selected : the Placement Base, Rotation and Center of mass is displayed (if available !)
Icon used for visualise if the object is status Visible (mouse click for Hidden) (the scrollbar is colored green)
Icon used for visualise if the object is status Hidden (mouse click for Visible) (the scrollbar is colored red)
Icon used for inform the object in a group the number objects is displayed in top group (the scrollbar is colored red clear)
Length If this check Box is checked the sort is created by length with the button clicked (Name, Label ...)
Save save the data in Spreadsheet displayed. if no spreadsheet is active the spreadsheet named FCSpreadSheet is created
The icon must be copied into the same directory as the macro
For prevent many instance the clic on ToolBar button are effect flip/flop (hide/visible)
The macro is located in right dock for change it modify the value line number 133 testing = 0 (or change it with the mouse as a widget normal)
Macro_FCTreeView.FCMacro
Docked the macro
ver 0010b (2025-07-04) : restore the "Original" button
ver 00.10 (2025-06-04) : return to PySide and more interactivity with the 3D view, but the Original button is now obsolete
ver 00.09 (2020-09-24) : correct the "freeze" macro after call the assembly4 workbench i try activate "Class SelObserver" and it work ???
class SelObserver:
def addSelection(self, document, object, element, position): # Selection
global sourisPass
global listeSorted
global ui
None
ver 00.08 (2020-02-25) : upgrade with Layout
ver 00.07 (06/05/2018) : modify procedure for search the last cell used
ver 00.06 (13/12/2017) : correct little bug line del line num 1881 "del listeSortedBis[doublon][4:] # supprime le fond inutile" thanks renatorivo
ver 00.05 (27/11/2017) : add creation spreadsheet and many option for him
ver 00.04 (29-09-2017) : add search by numeric value (length, radius....)
values researched :
global impost ; impost = ["Angle","Angle0","Angle1","Angle2","Angle3","ChamferSize","Circumradius","Columns","Degree",
"FilletRadius","FirstAngle","Growth","Height","LastAngle","Length","Length2","MajorRadius",
"MinorRadius","Pitch","Polygon","Radius","Radius1","Radius2","Radius3","Rows","Size","Width",
"X","X1","X2","Xmax","Xmin","X2max","X2min",
"Y","Y1","Y2","Ymax","Ymin","Y2max","Y2min",
"Z","Z1","Z2","Zmax","Zmin","Z2max","Z2min"]
ver 00.03 (23/09/2017) : add search by type object
ver 00.02 (11/09/2017) : modify for docked and prevent many instance the clic on button are effect flip/flop (macro hide/visible)
ver 00.01 (08/09/2017) :