Macro FCTreeView/hr

Opis
Makro za popis svih objekata u projektu na jednom popisu bez hijerarhije, opcije sortiranja po imenu, oznaci, vidljivosti, grupi, po duljini opcije pretraživanja po nazivu, naljepnici .... bez velikih i malih slova ili s osjetljivim i velikim slovima i odabir svih objekata prikazanih u makro prozor.

Odjeljak Window
Naslov prikazuje opciju, broj i vrstu prikazanih objekata

If one object are selected : the Placement Base, Rotation and Center of mass is displayed (if available !) Ikona koja se koristi za Naziv objekta (klizač je obojen u plavo)
 * O = Objects
 * N = Name
 * L = Label
 * T = Total
 * G = Group
 * S = Single
 * V = Visible
 * H = Hidden

Ikona koja se koristi za oznaku objekta (klizač je obojen plavom bojom)

Ikona koja se koristi za vizualizaciju ako je objekt status Vidljivo (klik mišem za Skriven) (klizač je obojen zeleno)

Ikona koja se koristi za vizualizaciju ako je objekt status Skriven (klik miša za Vidljivo) (klizač je obojen crvenom bojom)

Ikona koja se koristi za ime sadrži objekte (ili grupu mapa)

Ikona koja se koristi za ime sadrži objekte (ili grupu mapa)

Ikona korištena za prikaz pojedinačnog objekta (ne grupe)

Odjeljak Sort by :
Ikona koja se koristi za flip/flop normalan/obrnuti unos podataka sortira po imenu

Ikona koja se koristi za flip/flop normalan/obrnuti unos podataka sortira prema oznaci

Ikona koja se koristi za flip/flop normalan/obrnuti unos podataka sortirati prema Visibile/Hidden

Ikona koja se koristi za flip/flop normalan/obrnuti unos podataka sortira prema Group/Single object

Ako je potvrdni okvir označen, sortiranje se kreira prema duljini s gumbom na koji ste kliknuli (ime, oznaka ...)

OdjeljakGlobal
flip/flop Podijeli popis imena

flip/flop Podijelite popis imena i oznaka

flip/flop popis podataka Fold/Expend

flip/flop popis podataka Expend/Fold

flip/flop normal/Vidljivost

flip/flop normal/Group

reload the data in the project

return in original organisation after operation visibility/Hidden

visualise if the object is status Visible

visualise if the object is status Hidden

Section Search
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

flip/flop for Selected all object(s) displayed in the window

flip/flop Unselected all object(s)

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
 * Ex : 10.00 [[File:Macro FCTreeView 30.png]]
 * Val Gr : the value and the unit are saved in unique cell
 * Ex : 10.00 mm [[File:Macro FCTreeView 31.png]]
 * Val Gr Ph : the value, the unit and the physic data is saved in unique cell
 * Ex : 10.00 mm Length [[File:Macro FCTreeView 32.png]]
 * Split : if the Split checkBox is checked, the data is cut saved in separate cell
 * Ex : 10.00 | mm | length [[File:Macro FCTreeView 33.png]]


 * 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 all checkbox options

unselected all checkbox options

save the data in Spreadsheet displayed. if no spreadsheet is active the spreadsheet named FCSpreadSheet is created

quit the Spreadsheet options

Ikone
The icon must be copied into the same directory as the macro Macro_FCTreeView_Icon



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 133 testing       = 0 (or change it with the mouse as a widget normal)

The icon ToolBar

Macro_FCTreeView.FCMacro

Za napraviti
Docked the macro

Version
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 :

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) :