Macro FCTreeView: Difference between revisions
m ({{CodeDownload) |
(Marked this version for translation) |
||
Line 145: | Line 145: | ||
{{KEY|[[File:Macro FCTreeView 24.png|18px]] Unselected}} flip/flop Unselected all object(s) |
{{KEY|[[File:Macro FCTreeView 24.png|18px]] Unselected}} flip/flop Unselected all object(s) |
||
<!--T:56--> |
|||
{{KEY|[[File:Macro FCTreeView 25.png|18px]] S Sheet}} access in Spreadsheet options |
{{KEY|[[File:Macro FCTreeView 25.png|18px]] S Sheet}} access in Spreadsheet options |
||
</translate> |
</translate> |
||
<translate> |
<translate> |
||
===The SpreadSheet options:=== |
===The SpreadSheet options:=== <!--T:57--> |
||
</translate> |
</translate> |
||
<translate> |
<translate> |
||
<!--T:58--> |
|||
[[File:Macro FCTreeView 001.png]] |
[[File:Macro FCTreeView 001.png]] |
||
<!--T:59--> |
|||
[[File:Macro FCTreeView 002.png]] |
[[File:Macro FCTreeView 002.png]] |
||
* CheckBox options for select the data to save in spreadsheet |
* CheckBox options for select the data to save in spreadsheet |
||
<!--T:60--> |
|||
[[File:Macro FCTreeView 003.png]] |
[[File:Macro FCTreeView 003.png]] |
||
* '''Value''' : alone the value is saved in the cell |
* '''Value''' : alone the value is saved in the cell |
||
Line 167: | Line 171: | ||
** Ex : 10.00 | mm | length [[File:Macro FCTreeView 33.png]] |
** Ex : 10.00 | mm | length [[File:Macro FCTreeView 33.png]] |
||
<!--T:61--> |
|||
[[File:Macro FCTreeView 004.png]] |
[[File:Macro FCTreeView 004.png]] |
||
* Combobox '''mm''' : select the unit length desired. The value is convert in the selected unit. The units length available are: |
* Combobox '''mm''' : select the unit length desired. The value is convert in the selected unit. The units length available are: |
||
Line 175: | Line 180: | ||
* Spinbox '''Round''' : give the round value desired (Default : 3) |
* Spinbox '''Round''' : give the round value desired (Default : 3) |
||
<!--T:62--> |
|||
[[File:Macro FCTreeView 005.png]] |
[[File:Macro FCTreeView 005.png]] |
||
* Combobox '''Name spreadSheet''' : List the spreadsheet in the document |
* Combobox '''Name spreadSheet''' : List the spreadsheet in the document |
||
* Line edit '''Name spreadSheet''' : Display the actual spreadsheet or give the name for the new spreadsheet |
* Line edit '''Name spreadSheet''' : Display the actual spreadsheet or give the name for the new spreadsheet |
||
<!--T:63--> |
|||
[[File:Macro FCTreeView 006.png]] |
[[File:Macro FCTreeView 006.png]] |
||
<!--T:64--> |
|||
{{KEY|[[File:Macro FCTreeView 28.png|18px]] Select}} select all checkbox options |
{{KEY|[[File:Macro FCTreeView 28.png|18px]] Select}} select all checkbox options |
||
<!--T:65--> |
|||
{{KEY|[[File:Macro FCTreeView 29.png|18px]] Unselect}} unselected all checkbox options |
{{KEY|[[File:Macro FCTreeView 29.png|18px]] Unselect}} unselected all checkbox options |
||
<!--T:66--> |
|||
{{KEY|[[File:Macro FCTreeView 27.png|18px]] Save}} save the data in Spreadsheet displayed. if no spreadsheet is active the spreadsheet named '''FCSpreadSheet''' is created |
{{KEY|[[File:Macro FCTreeView 27.png|18px]] Save}} save the data in Spreadsheet displayed. if no spreadsheet is active the spreadsheet named '''FCSpreadSheet''' is created |
||
<!--T:67--> |
|||
{{KEY|[[File:Macro FCTreeView 26.png|18px]] Quit}} quit the Spreadsheet options |
{{KEY|[[File:Macro FCTreeView 26.png|18px]] Quit}} quit the Spreadsheet options |
||
Line 274: | Line 285: | ||
}} |
}} |
||
<translate> |
<translate> |
||
<!--T:68--> |
|||
ver 00.05 (27/11/2017) : add creation spreadsheet and many option for him |
ver 00.05 (27/11/2017) : add creation spreadsheet and many option for him |
||
<!--T:69--> |
|||
ver 00.04 (29/09/2017) : |
ver 00.04 (29/09/2017) : |
||
Revision as of 15:27, 28 November 2017
File:Macro FCTreeView Macro FCTreeView |
Description |
---|
This macro display all object of the project in one list with options sort search by name label... Macro version: 00.05 Last modified: 2017-11-27 Author: Mario52 |
Author |
Mario52 |
Download |
None |
Links |
Macros recipes How to install macros How to customize toolbars |
Macro Version |
00.05 |
Date last modified |
2017-11-27 |
FreeCAD Version(s) |
None |
Default shortcut |
None |
See also |
None |
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.
How To Use
Section Window
The title display the option, number and type object(s) displayed
- O = Objects
- N = Name
- L = Label
- T = Total
- G = Group
- S = Single
- V = Visible
- H = Hidden
If one object are selected : the Placement Base, Rotation and Center of mass is displayed (if available !) Icon used for the Name of object (the scrollbar is colored blue)
Icon used for the Label of object (the scrollbar is colored blue clear)
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 the Name contains objects (or folder Group)
Icon used for inform the object in a group the number objects is displayed in top group (the scrollbar is colored red clear)
Icon used for displayed the single object (not group)
Section Sort by :
Name Icon used for flip/flop normal/reverse the data listing sort by Name
Label Icon used for flip/flop normal/reverse the data listing sort by Label
Visible Icon used for flip/flop normal/reverse the data listing sort by Visibile/Hidden
Group Icon used for flip/flop normal/reverse the data listing sort by Group/Single object
Length If this check Box is checked the sort is created by length with the button clicked (Name, Label ...)
Section Global
Split flip/flop Split the Name list
Split flip/flop Split the Name and Label list
Expend flip/flop the data listing Fold/Expend
Expend flip/flop the data listing Expend/Fold
Visibility flip/flop normal/Visibility
Reload reload the data in the project
Original return in original organisation after operation visibility/Hidden
All Visible visualise if the object is status Visible
All Hidden visualise if the object is status Hidden
Section Search
Clear Clear the search line edit
The radioButton options Search:
- ("NLwc") : Search by Name and Label Without respecting the sensitive Case
- ("Nsc") : Search by Name and respecting the Sensitive Case
- ("Lwc") : Search by Label Without respecting the sensitive Case
- ("NLsc") : Search by Name and Label and respecting the Sensitive Case
- ("NLwsc") : Search by Name and Label in Word and respecting the Sensitive Case (same panel selection of FreeCAD)
- (Nu) : Search by numeric value (radius, length, angle .....) see version section
Select flip/flop for Selected all object(s) displayed in the window
Unselected flip/flop Unselected all object(s)
S Sheet access in Spreadsheet options
The SpreadSheet options:
- CheckBox options for select the data to save in spreadsheet
- Value : alone the value is saved in the cell
- Val Gr : the value and the unit are saved in unique cell
- Val Gr Ph : the value, the unit and the physic data is saved in unique cell
- Split : if the Split checkBox is checked, the data is cut saved in separate cell
- Combobox mm : select the unit length desired. The value is convert in the selected unit. The units length available are:
- km, hm, dam, m, dm, cm, mm, um, nm, pm, fm, in, lk, ft, yd, rd, ch, fur, mi, lea, nmi
- Combobox gram : select the unit weight desired. The value is convert in the selected unit. The units weight available are:
- t, q, kg, hg, dag, g, dg, cg, mg, µg, ng, pg, fg, gr, dr, oz, oz t, lb, t lb, st, qtr, cwt, tonneau fr, ct
- Spinbox Densite : give the density by dm3 of the material used (Default : 1.0000)
- Spinbox Round : give the round value desired (Default : 3)
- Combobox Name spreadSheet : List the spreadsheet in the document
- Line edit Name spreadSheet : Display the actual spreadsheet or give the name for the new spreadsheet
Select select all checkbox options
Unselect unselected all checkbox options
Save save the data in Spreadsheet displayed. if no spreadsheet is active the spreadsheet named FCSpreadSheet is created
Quit quit the Spreadsheet options
Icons
The icon must be copied into the same directory as the macro
Script
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 131 testing = 0 (or change it with the mouse as a widget normal)
Macro FCTreeView.FCMacro
To do
Docked the macro
Version
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.05 (27/11/2017) : add creation spreadsheet and many option for him
ver 00.04 (29/09/2017) :
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) :