FreeCAD-Doc/localwiki/Macro_FCTreeView-hr.html
2018-07-19 18:47:02 -05:00

258 lines
39 KiB
HTML

<html><head><title>Macro FCTreeView/hr</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Macro FCTreeView/hr</h1></div>
<div id="mw-content-text" lang="hr" dir="ltr" class="mw-content-ltr"><hr/><div class="mw-parser-output"><table class="fcinfobox wikitable ct" width="100%" style="float: right; width: 230px; margin-left: 10px;">
<tr>
<td class="ctTitle">
<h3><span class="mw-headline" id="Macro_FCTreeView"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView.png" class="image"><img alt="Macro FCTreeView.png" src="32px-Macro_FCTreeView.png" width="32" height="32" srcset="/wiki/images/thumb/6/64/Macro_FCTreeView.png/48px-Macro_FCTreeView.png 1.5x, Macro_FCTreeView.png 2x" /></a> Macro FCTreeView</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Description
</th></tr>
<tr>
<td class="ctEven left macro-description">This macro display all object of the project in one list with options sort search by name label...
</td></tr>
<tr>
<th class="ctOdd">Author
</th></tr>
<tr>
<td class="ctEven macro-author"><a href="https://www.freecadweb.org/wiki/index.php?title=User:Mario52" title="User:Mario52">Mario52</a>
</td></tr>
<tr>
<th class="ctOdd">Links
</th></tr>
<tr>
<td class="ctEven"><a href="Macros_recipes.html" title="Macros recipes">Macros recipes</a><br /><a href="How_to_install_macros.html" title="How to install macros">How to install macros</a><br /><a href="Customize_Toolbars.html" title="Customize Toolbars">How to customize toolbars</a>
</td></tr>
<tr>
<th class="ctOdd">Version
</th></tr>
<tr>
<td class="ctEven macro-version">00.07
</td></tr>
<tr>
<th class="ctOdd">Date last modification
</th></tr>
<tr>
<td class="ctEven macro-date">2018-05-06
</td></tr>
<tr>
<th class="ctOdd">
</th></tr>
<tr>
<td class="ctToc"><br /><div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1"><a href="#Macro_FCTreeView"><span class="tocnumber">1</span> <span class="toctext">Macro FCTreeView</span></a></li>
<li class="toclevel-1 tocsection-1"><a href="#Description"><span class="tocnumber">2</span> <span class="toctext">Description</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#How_To_Use"><span class="tocnumber">3</span> <span class="toctext">How To Use</span></a>
<ul>
<li class="toclevel-2 tocsection-3"><a href="#Section_Window"><span class="tocnumber">3.1</span> <span class="toctext">Section <b>Window</b></span></a></li>
<li class="toclevel-2 tocsection-4"><a href="#Section_Sort_by_:"><span class="tocnumber">3.2</span> <span class="toctext">Section <b>Sort by&#160;:</b></span></a></li>
<li class="toclevel-2 tocsection-5"><a href="#Section_Global"><span class="tocnumber">3.3</span> <span class="toctext">Section <b>Global</b></span></a></li>
<li class="toclevel-2 tocsection-6"><a href="#Section_Search"><span class="tocnumber">3.4</span> <span class="toctext">Section <b>Search</b></span></a>
<ul>
<li class="toclevel-3 tocsection-7"><a href="#The_radioButton_options_Search:"><span class="tocnumber">3.4.1</span> <span class="toctext">The radioButton options <b>Search</b>:</span></a></li>
</ul>
</li>
<li class="toclevel-2 tocsection-8"><a href="#The_SpreadSheet_options:"><span class="tocnumber">3.5</span> <span class="toctext">The SpreadSheet options:</span></a></li>
<li class="toclevel-2 tocsection-9"><a href="#Ikone"><span class="tocnumber">3.6</span> <span class="toctext">Ikone</span></a></li>
</ul>
</li>
<li class="toclevel-1 tocsection-10"><a href="#Script"><span class="tocnumber">4</span> <span class="toctext">Script</span></a></li>
<li class="toclevel-1 tocsection-11"><a href="#Za_napraviti"><span class="tocnumber">5</span> <span class="toctext">Za napraviti</span></a></li>
<li class="toclevel-1 tocsection-12"><a href="#Version"><span class="tocnumber">6</span> <span class="toctext">Version</span></a></li>
</ul>
</div>
</td></tr>
</table>
<p><br />
</p>
<h2><span class="mw-headline" id="Description">Description</span></h2>
<p>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.
</p>
<h2><span class="mw-headline" id="How_To_Use">How To Use</span></h2>
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:FCTreeView.gif" class="image" title="Macro FCTreeView"><img alt="Macro FCTreeView" src="FCTreeView.gif" width="471" height="730" /></a>
</p>
<div style="clear:both"></div>
<p><br />
</p>
<h3><span class="mw-headline" id="Section_Window">Section <b>Window</b></span></h3>
<p>The title display the option, number and type object(s) displayed
</p>
<ul><li><b>O</b> = Objects</li>
<li><b>N</b> = Name</li>
<li><b>L</b> = Label</li>
<li><b>T</b> = Total</li>
<li><b>G</b> = Group</li>
<li><b>S</b> = Single</li>
<li><b>V</b> = Visible</li>
<li><b>H</b> = Hidden</li></ul>
<p>If one object are selected&#160;: the Placement Base, Rotation and Center of mass is displayed (if available&#160;!)
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_00.png" class="image" title="Icon used for the Name of object"><img alt="Icon used for the Name of object" src="Macro_FCTreeView_00.png" width="64" height="64" /></a> Icon used for the Name of object (the scrollbar is colored blue)
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_05.png" class="image" title="Icon used for the Label of object"><img alt="Icon used for the Label of object" src="Macro_FCTreeView_05.png" width="64" height="64" /></a> Icon used for the Label of object (the scrollbar is colored blue clear)
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_01.png" class="image" title="Icon used for visualise if the object is status Visible (mouse click for Hidden)"><img alt="Icon used for visualise if the object is status Visible (mouse click for Hidden)" src="Macro_FCTreeView_01.png" width="64" height="64" /></a> Icon used for visualise if the object is status Visible (mouse click for Hidden) (the scrollbar is colored green)
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_02.png" class="image" title="Icon used for visualise if the object is status Hidden (mouse click for Visible)"><img alt="Icon used for visualise if the object is status Hidden (mouse click for Visible)" src="Macro_FCTreeView_02.png" width="64" height="64" /></a> Icon used for visualise if the object is status Hidden (mouse click for Visible) (the scrollbar is colored red)
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_17.png" class="image" title="Icon used for the Name contains objects (or folder Group)"><img alt="Icon used for the Name contains objects (or folder Group)" src="Macro_FCTreeView_17.png" width="64" height="64" /></a> Icon used for the Name contains objects (or folder Group)
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_03.png" class="image" title="Icon used for inform the object in a group the number objects is displayed in top group"><img alt="Icon used for inform the object in a group the number objects is displayed in top group" src="Macro_FCTreeView_03.png" width="64" height="64" /></a> Icon used for inform the object in a group the number objects is displayed in top group (the scrollbar is colored red clear)
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_04.png" class="image" title="Icon used for displayed the single object (not group)"><img alt="Icon used for displayed the single object (not group)" src="Macro_FCTreeView_04.png" width="64" height="64" /></a> Icon used for displayed the single object (not group)
</p>
<h3><span class="mw-headline" id="Section_Sort_by_:">Section <b>Sort by&#160;:</b></span></h3>
<p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_10.png" class="image"><img alt="Macro FCTreeView 10.png" src="18px-Macro_FCTreeView_10.png" width="18" height="18" srcset="/wiki/images/thumb/2/22/Macro_FCTreeView_10.png/27px-Macro_FCTreeView_10.png 1.5x, /wiki/images/thumb/2/22/Macro_FCTreeView_10.png/36px-Macro_FCTreeView_10.png 2x" /></a> Name</span> Icon used for flip/flop normal/reverse the data listing sort by Name
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_11.png" class="image"><img alt="Macro FCTreeView 11.png" src="18px-Macro_FCTreeView_11.png" width="18" height="18" srcset="/wiki/images/thumb/a/a5/Macro_FCTreeView_11.png/27px-Macro_FCTreeView_11.png 1.5x, /wiki/images/thumb/a/a5/Macro_FCTreeView_11.png/36px-Macro_FCTreeView_11.png 2x" /></a> Label</span> Icon used for flip/flop normal/reverse the data listing sort by Label
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_12.png" class="image"><img alt="Macro FCTreeView 12.png" src="18px-Macro_FCTreeView_12.png" width="18" height="18" srcset="/wiki/images/thumb/0/08/Macro_FCTreeView_12.png/27px-Macro_FCTreeView_12.png 1.5x, /wiki/images/thumb/0/08/Macro_FCTreeView_12.png/36px-Macro_FCTreeView_12.png 2x" /></a> Visible</span> Icon used for flip/flop normal/reverse the data listing sort by Visibile/Hidden
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_13.png" class="image"><img alt="Macro FCTreeView 13.png" src="18px-Macro_FCTreeView_13.png" width="18" height="18" srcset="/wiki/images/thumb/f/f5/Macro_FCTreeView_13.png/27px-Macro_FCTreeView_13.png 1.5x, /wiki/images/thumb/f/f5/Macro_FCTreeView_13.png/36px-Macro_FCTreeView_13.png 2x" /></a> Group</span> Icon used for flip/flop normal/reverse the data listing sort by Group/Single object
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_19.png" class="image"><img alt="Macro FCTreeView 19.png" src="18px-Macro_FCTreeView_19.png" width="18" height="18" srcset="/wiki/images/thumb/7/7d/Macro_FCTreeView_19.png/27px-Macro_FCTreeView_19.png 1.5x, /wiki/images/thumb/7/7d/Macro_FCTreeView_19.png/36px-Macro_FCTreeView_19.png 2x" /></a> Length</span> If this check Box is checked the sort is created by length with the button clicked (Name, Label ...)
</p>
<h3><span class="mw-headline" id="Section_Global">Section <b>Global</b></span></h3>
<p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_21.png" class="image"><img alt="Macro FCTreeView 21.png" src="18px-Macro_FCTreeView_21.png" width="18" height="18" srcset="/wiki/images/thumb/a/ae/Macro_FCTreeView_21.png/27px-Macro_FCTreeView_21.png 1.5x, /wiki/images/thumb/a/ae/Macro_FCTreeView_21.png/36px-Macro_FCTreeView_21.png 2x" /></a> Split</span> flip/flop Split the Name list
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_22.png" class="image"><img alt="Macro FCTreeView 22.png" src="18px-Macro_FCTreeView_22.png" width="18" height="18" srcset="/wiki/images/thumb/8/8f/Macro_FCTreeView_22.png/27px-Macro_FCTreeView_22.png 1.5x, /wiki/images/thumb/8/8f/Macro_FCTreeView_22.png/36px-Macro_FCTreeView_22.png 2x" /></a> Split</span> flip/flop Split the Name and Label list
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_14.png" class="image"><img alt="Macro FCTreeView 14.png" src="18px-Macro_FCTreeView_14.png" width="18" height="18" srcset="/wiki/images/thumb/b/b5/Macro_FCTreeView_14.png/27px-Macro_FCTreeView_14.png 1.5x, /wiki/images/thumb/b/b5/Macro_FCTreeView_14.png/36px-Macro_FCTreeView_14.png 2x" /></a> Expend</span> flip/flop the data listing Fold/Expend
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_15.png" class="image"><img alt="Macro FCTreeView 15.png" src="18px-Macro_FCTreeView_15.png" width="18" height="18" srcset="/wiki/images/thumb/b/b9/Macro_FCTreeView_15.png/27px-Macro_FCTreeView_15.png 1.5x, /wiki/images/thumb/b/b9/Macro_FCTreeView_15.png/36px-Macro_FCTreeView_15.png 2x" /></a> Expend</span> flip/flop the data listing Expend/Fold
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_06.png" class="image"><img alt="Macro FCTreeView 06.png" src="18px-Macro_FCTreeView_06.png" width="18" height="18" srcset="/wiki/images/thumb/7/78/Macro_FCTreeView_06.png/27px-Macro_FCTreeView_06.png 1.5x, /wiki/images/thumb/7/78/Macro_FCTreeView_06.png/36px-Macro_FCTreeView_06.png 2x" /></a> Visibility</span> flip/flop normal/Visibility
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_07.png" class="image"><img alt="Macro FCTreeView 07.png" src="18px-Macro_FCTreeView_07.png" width="18" height="18" srcset="/wiki/images/thumb/c/cd/Macro_FCTreeView_07.png/27px-Macro_FCTreeView_07.png 1.5x, /wiki/images/thumb/c/cd/Macro_FCTreeView_07.png/36px-Macro_FCTreeView_07.png 2x" /></a> Group</span> flip/flop normal/Group
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_16.png" class="image"><img alt="Macro FCTreeView 16.png" src="18px-Macro_FCTreeView_16.png" width="18" height="18" srcset="/wiki/images/thumb/a/ad/Macro_FCTreeView_16.png/27px-Macro_FCTreeView_16.png 1.5x, /wiki/images/thumb/a/ad/Macro_FCTreeView_16.png/36px-Macro_FCTreeView_16.png 2x" /></a> Reload</span> reload the data in the project
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_18.png" class="image"><img alt="Macro FCTreeView 18.png" src="18px-Macro_FCTreeView_18.png" width="18" height="18" srcset="/wiki/images/thumb/8/87/Macro_FCTreeView_18.png/27px-Macro_FCTreeView_18.png 1.5x, /wiki/images/thumb/8/87/Macro_FCTreeView_18.png/36px-Macro_FCTreeView_18.png 2x" /></a> Original</span> return in original organisation after operation visibility/Hidden
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_01.png" class="image"><img alt="Macro FCTreeView 01.png" src="18px-Macro_FCTreeView_01.png" width="18" height="18" srcset="/wiki/images/thumb/b/b7/Macro_FCTreeView_01.png/27px-Macro_FCTreeView_01.png 1.5x, /wiki/images/thumb/b/b7/Macro_FCTreeView_01.png/36px-Macro_FCTreeView_01.png 2x" /></a> All Visible</span> visualise if the object is status Visible
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_02.png" class="image"><img alt="Macro FCTreeView 02.png" src="18px-Macro_FCTreeView_02.png" width="18" height="18" srcset="/wiki/images/thumb/1/13/Macro_FCTreeView_02.png/27px-Macro_FCTreeView_02.png 1.5x, /wiki/images/thumb/1/13/Macro_FCTreeView_02.png/36px-Macro_FCTreeView_02.png 2x" /></a> All Hidden</span> visualise if the object is status Hidden
</p>
<h3><span class="mw-headline" id="Section_Search">Section <b>Search</b></span></h3>
<p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_20.png" class="image"><img alt="Macro FCTreeView 20.png" src="18px-Macro_FCTreeView_20.png" width="18" height="18" srcset="/wiki/images/thumb/a/ab/Macro_FCTreeView_20.png/27px-Macro_FCTreeView_20.png 1.5x, /wiki/images/thumb/a/ab/Macro_FCTreeView_20.png/36px-Macro_FCTreeView_20.png 2x" /></a> Clear</span> Clear the search line edit
</p>
<h4><span class="mw-headline" id="The_radioButton_options_Search:">The radioButton options <b>Search</b>:</span></h4>
<ul><li><b>("NLwc")</b>&#160;: Search by Name and Label <b>W</b>ithout respecting the sensitive <b>C</b>ase</li></ul>
<ul><li><b>("Nsc")</b>&#160;: Search by Name and respecting the <b>S</b>ensitive <b>C</b>ase</li></ul>
<ul><li><b>("Lwc")</b>&#160;: Search by Label <b>W</b>ithout respecting the sensitive <b>C</b>ase</li></ul>
<ul><li><b>("NLsc")</b>&#160;: Search by Name and Label and respecting the <b>S</b>ensitive <b>C</b>ase</li></ul>
<ul><li><b>("NLwsc")</b>&#160;: Search by Name and Label in Word and respecting the <b>S</b>ensitive <b>C</b>ase (same panel selection of FreeCAD)</li></ul>
<ul><li><b>(Nu)</b> &#160;: Search by numeric value (radius, length, angle .....) see version section</li></ul>
<p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_23.png" class="image"><img alt="Macro FCTreeView 23.png" src="18px-Macro_FCTreeView_23.png" width="18" height="18" srcset="/wiki/images/thumb/2/25/Macro_FCTreeView_23.png/27px-Macro_FCTreeView_23.png 1.5x, /wiki/images/thumb/2/25/Macro_FCTreeView_23.png/36px-Macro_FCTreeView_23.png 2x" /></a> Select</span> flip/flop for Selected all object(s) displayed in the window
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_24.png" class="image"><img alt="Macro FCTreeView 24.png" src="18px-Macro_FCTreeView_24.png" width="18" height="18" srcset="/wiki/images/thumb/6/60/Macro_FCTreeView_24.png/27px-Macro_FCTreeView_24.png 1.5x, /wiki/images/thumb/6/60/Macro_FCTreeView_24.png/36px-Macro_FCTreeView_24.png 2x" /></a> Unselected</span> flip/flop Unselected all object(s)
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_25.png" class="image"><img alt="Macro FCTreeView 25.png" src="18px-Macro_FCTreeView_25.png" width="18" height="18" srcset="/wiki/images/thumb/5/50/Macro_FCTreeView_25.png/27px-Macro_FCTreeView_25.png 1.5x, /wiki/images/thumb/5/50/Macro_FCTreeView_25.png/36px-Macro_FCTreeView_25.png 2x" /></a> S Sheet</span> access in Spreadsheet options
</p>
<h3><span class="mw-headline" id="The_SpreadSheet_options:">The SpreadSheet options:</span></h3>
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:TreeView_SpeadSheet.gif" class="image" title="Macro FCTreeView"><img alt="Macro FCTreeView" src="TreeView_SpeadSheet.gif" width="454" height="690" /></a>
</p>
<div style="clear:both"></div>
<p><br />
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_001.png" class="image"><img alt="Macro FCTreeView 001.png" src="Macro_FCTreeView_001.png" width="340" height="230" /></a>
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_002.png" class="image"><img alt="Macro FCTreeView 002.png" src="Macro_FCTreeView_002.png" width="340" height="230" /></a>
</p>
<ul><li> CheckBox options for select the data to save in spreadsheet</li></ul>
<p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_28.png" class="image"><img alt="Macro FCTreeView 28.png" src="18px-Macro_FCTreeView_28.png" width="18" height="18" srcset="/wiki/images/thumb/c/ca/Macro_FCTreeView_28.png/27px-Macro_FCTreeView_28.png 1.5x, /wiki/images/thumb/c/ca/Macro_FCTreeView_28.png/36px-Macro_FCTreeView_28.png 2x" /></a> Select</span>&#160;: Select all checkBox option to save
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_29.png" class="image"><img alt="Macro FCTreeView 29.png" src="18px-Macro_FCTreeView_29.png" width="18" height="18" srcset="/wiki/images/thumb/7/73/Macro_FCTreeView_29.png/27px-Macro_FCTreeView_29.png 1.5x, /wiki/images/thumb/7/73/Macro_FCTreeView_29.png/36px-Macro_FCTreeView_29.png 2x" /></a> Select</span>&#160;: unSelect all checkBox option to save
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_003.png" class="image"><img alt="Macro FCTreeView 003.png" src="Macro_FCTreeView_003.png" width="340" height="230" /></a>
</p>
<ul><li> <b>Value</b>&#160;: alone the value is saved in the cell
<ul><li> Ex&#160;: 10.00 <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_30.png" class="image"><img alt="Macro FCTreeView 30.png" src="Macro_FCTreeView_30.png" width="64" height="64" /></a> </li></ul></li>
<li> <b>Val Gr</b>&#160;: the value and the unit are saved in unique cell
<ul><li> Ex&#160;: 10.00 mm <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_31.png" class="image"><img alt="Macro FCTreeView 31.png" src="Macro_FCTreeView_31.png" width="64" height="64" /></a> </li></ul></li>
<li> <b>Val Gr Ph</b>&#160;: the value, the unit and the physic data is saved in unique cell
<ul><li> Ex&#160;: 10.00 mm Length <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_32.png" class="image"><img alt="Macro FCTreeView 32.png" src="Macro_FCTreeView_32.png" width="64" height="64" /></a> </li></ul></li>
<li> <b>Split</b>&#160;: if the Split checkBox is checked, the data is cut saved in separate cell
<ul><li> Ex&#160;: 10.00 | mm | length <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_33.png" class="image"><img alt="Macro FCTreeView 33.png" src="Macro_FCTreeView_33.png" width="64" height="64" /></a> </li></ul></li></ul>
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_004.png" class="image"><img alt="Macro FCTreeView 004.png" src="Macro_FCTreeView_004.png" width="340" height="230" /></a>
</p>
<ul><li> Combobox <b>mm</b>&#160;: select the unit length desired. The value is convert in the selected unit. The units length available are:
<ul><li> km, hm, dam, m, dm, cm, <b>mm</b>, um, nm, pm, fm, in, lk, ft, yd, rd, ch, fur, mi, lea, nmi</li></ul></li>
<li> Combobox <b>gram</b>&#160;: select the unit weight desired. The value is convert in the selected unit. The units weight available are:
<ul><li> t, q, kg, hg, dag, <b>g</b>, dg, cg, mg, µg, ng, pg, fg, gr, dr, oz, oz t, lb, t lb, st, qtr, cwt, tonneau fr, ct </li></ul></li>
<li> Spinbox <b>Densite</b>&#160;: give the density by dm3 of the material used (Default&#160;: 1.0000)</li>
<li> Spinbox <b>Round</b>&#160;: give the round value desired (Default&#160;: 3)</li></ul>
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_005.png" class="image"><img alt="Macro FCTreeView 005.png" src="Macro_FCTreeView_005.png" width="340" height="230" /></a>
</p>
<ul><li> Combobox <b>Name spreadSheet</b>&#160;: List the spreadsheet in the document</li>
<li> Line edit <b>Name spreadSheet</b>&#160;: Display the actual spreadsheet or give the name for the new spreadsheet</li></ul>
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_006.png" class="image"><img alt="Macro FCTreeView 006.png" src="Macro_FCTreeView_006.png" width="340" height="230" /></a>
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_28.png" class="image"><img alt="Macro FCTreeView 28.png" src="18px-Macro_FCTreeView_28.png" width="18" height="18" srcset="/wiki/images/thumb/c/ca/Macro_FCTreeView_28.png/27px-Macro_FCTreeView_28.png 1.5x, /wiki/images/thumb/c/ca/Macro_FCTreeView_28.png/36px-Macro_FCTreeView_28.png 2x" /></a> Select</span> select all checkbox options
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_29.png" class="image"><img alt="Macro FCTreeView 29.png" src="18px-Macro_FCTreeView_29.png" width="18" height="18" srcset="/wiki/images/thumb/7/73/Macro_FCTreeView_29.png/27px-Macro_FCTreeView_29.png 1.5x, /wiki/images/thumb/7/73/Macro_FCTreeView_29.png/36px-Macro_FCTreeView_29.png 2x" /></a> Unselect</span> unselected all checkbox options
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_27.png" class="image"><img alt="Macro FCTreeView 27.png" src="18px-Macro_FCTreeView_27.png" width="18" height="18" srcset="/wiki/images/thumb/6/69/Macro_FCTreeView_27.png/27px-Macro_FCTreeView_27.png 1.5x, /wiki/images/thumb/6/69/Macro_FCTreeView_27.png/36px-Macro_FCTreeView_27.png 2x" /></a> Save</span> save the data in Spreadsheet displayed. if no spreadsheet is active the spreadsheet named <b>FCSpreadSheet</b> is created
</p><p><span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_26.png" class="image"><img alt="Macro FCTreeView 26.png" src="18px-Macro_FCTreeView_26.png" width="18" height="18" srcset="/wiki/images/thumb/c/c8/Macro_FCTreeView_26.png/27px-Macro_FCTreeView_26.png 1.5x, /wiki/images/thumb/c/c8/Macro_FCTreeView_26.png/36px-Macro_FCTreeView_26.png 2x" /></a> Quit</span> quit the Spreadsheet options
</p>
<h3><span class="mw-headline" id="Ikone">Ikone</span></h3>
<p>The icon must be copied into the same directory as the macro
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_00.png" class="image" title="Icon used for the Name of object"><img alt="Icon used for the Name of object" src="Macro_FCTreeView_00.png" width="64" height="64" /></a> <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_01.png" class="image" title="Icon used for visualise if the object is status Visible (mouse click for Hidden)"><img alt="Icon used for visualise if the object is status Visible (mouse click for Hidden)" src="Macro_FCTreeView_01.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_02.png" class="image" title="Icon used for visualise if the object is status Hidden (mouse click for Visible)"><img alt="Icon used for visualise if the object is status Hidden (mouse click for Visible)" src="Macro_FCTreeView_02.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_03.png" class="image" title="Icon used for inform the object in a group the number objects is displayed in top group"><img alt="Icon used for inform the object in a group the number objects is displayed in top group" src="Macro_FCTreeView_03.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_04.png" class="image" title="Icon used for displayed the single object (not group)"><img alt="Icon used for displayed the single object (not group)" src="Macro_FCTreeView_04.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_05.png" class="image" title="Icon used for the Label of object"><img alt="Icon used for the Label of object" src="Macro_FCTreeView_05.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_06.png" class="image" title="Icon used for flip/flop normal/Visibility"><img alt="Icon used for flip/flop normal/Visibility" src="Macro_FCTreeView_06.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_07.png" class="image" title="Icon used for flip/flop normal/Group"><img alt="Icon used for flip/flop normal/Group" src="Macro_FCTreeView_07.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_08.png" class="image" title="Icon used for Reverse the data listing (momentarily not used)"><img alt="Icon used for Reverse the data listing (momentarily not used)" src="Macro_FCTreeView_08.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_09.png" class="image" title="Icon used for quit Macro FCTreeView (momentarily not used)"><img alt="Icon used for quit Macro FCTreeView (momentarily not used)" src="Macro_FCTreeView_09.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_10.png" class="image" title="Icon used for flip/flop normal/reverse the data listing sort by Name"><img alt="Icon used for flip/flop normal/reverse the data listing sort by Name" src="Macro_FCTreeView_10.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_11.png" class="image" title="Icon used for flip/flop normal/reverse the data listing sort by Label"><img alt="Icon used for flip/flop normal/reverse the data listing sort by Label" src="Macro_FCTreeView_11.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_12.png" class="image" title="Icon used for flip/flop normal/reverse the data listing sort by Visibility/Hidden"><img alt="Icon used for flip/flop normal/reverse the data listing sort by Visibility/Hidden" src="Macro_FCTreeView_12.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_13.png" class="image" title="Icon used for flip/flop normal/reverse the data listing sort by Grout/Single object"><img alt="Icon used for flip/flop normal/reverse the data listing sort by Grout/Single object" src="Macro_FCTreeView_13.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_14.png" class="image" title="Icon used for flip/flop the data listing Fold/Expend"><img alt="Icon used for flip/flop the data listing Fold/Expend" src="Macro_FCTreeView_14.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_15.png" class="image" title="Icon used for flip/flop the data listing Expend/Fold"><img alt="Icon used for flip/flop the data listing Expend/Fold" src="Macro_FCTreeView_15.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_16.png" class="image" title="Icon used for reload the data in the project"><img alt="Icon used for reload the data in the project" src="Macro_FCTreeView_16.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_17.png" class="image" title="Icon used for the Name contains objects (or folder Group)"><img alt="Icon used for the Name contains objects (or folder Group)" src="Macro_FCTreeView_17.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_18.png" class="image" title="Icon used for return in original organisation after operation visibility/Hidden"><img alt="Icon used for return in original organisation after operation visibility/Hidden" src="Macro_FCTreeView_18.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_19.png" class="image" title="If this check Box is checked the sort is created by length with the button clicked (Name, Label ...)"><img alt="If this check Box is checked the sort is created by length with the button clicked (Name, Label ...)" src="Macro_FCTreeView_19.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_20.png" class="image" title="Icon used for Clear the search line edit"><img alt="Icon used for Clear the search line edit" src="Macro_FCTreeView_20.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_21.png" class="image" title="Icon used for flip/flop Split the Name list"><img alt="Icon used for flip/flop Split the Name list" src="Macro_FCTreeView_21.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_22.png" class="image" title="Icon used for flip/flop Split the Name and Label list"><img alt="Icon used for flip/flop Split the Name and Label list" src="Macro_FCTreeView_22.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_23.png" class="image" title="Icon used for Selected all object(s) displayed in the window"><img alt="Icon used for Selected all object(s) displayed in the window" src="Macro_FCTreeView_23.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_24.png" class="image" title="Icon used for Unselected all object(s)"><img alt="Icon used for Unselected all object(s)" src="Macro_FCTreeView_24.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_25.png" class="image" title="Icon used for access in Spreadsheet options"><img alt="Icon used for access in Spreadsheet options" src="Macro_FCTreeView_25.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_26.png" class="image" title="Icon used for quit the Spreadsheet options"><img alt="Icon used for quit the Spreadsheet options" src="Macro_FCTreeView_26.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_27.png" class="image" title="Icon used for save the data in Spreadsheet"><img alt="Icon used for save the data in Spreadsheet" src="Macro_FCTreeView_27.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_28.png" class="image" title="Icon used for select all checkbox options"><img alt="Icon used for select all checkbox options" src="Macro_FCTreeView_28.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_29.png" class="image" title="Icon used for unselected all checkbox options"><img alt="Icon used for unselected all checkbox options" src="Macro_FCTreeView_29.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_30.png" class="image" title="Icon used for save the value data in Spreadsheet"><img alt="Icon used for save the value data in Spreadsheet" src="Macro_FCTreeView_30.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_31.png" class="image" title="Icon used for save the value and Unit data in Spreadsheet"><img alt="Icon used for save the value and Unit data in Spreadsheet" src="Macro_FCTreeView_31.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_32.png" class="image" title="Icon used for save the value, Unit and type data in Spreadsheet"><img alt="Icon used for save the value, Unit and type data in Spreadsheet" src="Macro_FCTreeView_32.png" width="64" height="64" /></a>
<a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView_33.png" class="image" title="Icon used for split the value, Unit and type in cell separate in Spreadsheet"><img alt="Icon used for split the value, Unit and type in cell separate in Spreadsheet" src="Macro_FCTreeView_33.png" width="64" height="64" /></a>
</p>
<h2><span class="mw-headline" id="Script">Script</span></h2>
<p>For prevent many instance the clic on ToolBar button are effect flip/flop (hide/visible)
</p><p>The macro is located in right dock for change it modify the value line number 133 <b>testing = 0</b> (or change it with the mouse as a widget normal)
</p><p>The icon ToolBar <a href="https://www.freecadweb.org/wiki/index.php?title=File:Macro_FCTreeView.png" class="image" title="Macro FCTreeView"><img alt="Macro FCTreeView" src="Macro_FCTreeView.png" width="64" height="64" /></a>
</p><p><b>Macro FCTreeView.FCMacro</b>
</p>
<div class="plainlinks" style="width:450px; text-align:center; margin:10px auto;">
<div style="border:1px outset #9eb4b5; background:#c0ffd8; margin:5px; padding:5px; white-space:nowrap; -webkit-border-radius: 5px; -moz-border-radius: 5px;">
<center><font color="#007900"><u>Download the code file</u></font></center>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Nuvola_apps_download_manager.png" class="image"><img alt="Nuvola apps download manager.png" src="35px-Nuvola_apps_download_manager.png" width="35" height="35" srcset="/wiki/images/thumb/2/26/Nuvola_apps_download_manager.png/53px-Nuvola_apps_download_manager.png 1.5x, /wiki/images/thumb/2/26/Nuvola_apps_download_manager.png/70px-Nuvola_apps_download_manager.png 2x" /></a></div></div><br />
<span class="CodeDownload"><center><a rel="nofollow" class="external text" href="https://gist.github.com/mario52a/67517ef758ff20005d0a6adcfd8c9190">Macro_FCTreeView</a></center></span>
<p><br />
</p>
</div>
</div>
<p><br />
</p>
<h2><span class="mw-headline" id="Za_napraviti">Za napraviti</span></h2>
<p><strike>Docked the macro</strike>
</p>
<h2><span class="mw-headline" id="Version">Version</span></h2>
<p>ver 00.07 (06/05/2018)&#160;: modify procedure for search the last cell used
</p><p>ver 00.06 (13/12/2017)&#160;: correct little bug line del line num 1881 "del listeSortedBis[doublon][4:] # supprime le fond inutile" thanks renatorivo
</p><p>ver 00.05 (27/11/2017)&#160;: add creation spreadsheet and many option for him
</p><p>ver 00.04 (29-09-2017)&#160;: add search by numeric value (length, radius....)
</p><p>values researched&#160;:
</p>
<pre>global impost &#160;; 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"] </pre>
<p>ver 00.03 (23/09/2017)&#160;: add search by type object
</p><p>ver 00.02 (11/09/2017)&#160;: modify for docked and prevent many instance the clic on button are effect flip/flop (macro hide/visible)
</p><p>ver 00.01 (08/09/2017) &#160;:
</p>
</div>
</div>
</div><div class="printfooter">
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Macro_FCTreeView/hr&amp;oldid=286722">http://www.freecadweb.org/wiki/index.php?title=Macro_FCTreeView/hr&amp;oldid=286722</a>"</div>
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
</div>
</div>
<div id="mw-navigation">
<h2>Navigation menu</h2>
</body></html>