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

98 lines
6.6 KiB
HTML

<html><head><title>Spreadsheet Create/pl</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Spreadsheet Create/pl</h1></div>
<div id="mw-content-text" lang="pl" dir="ltr" class="mw-content-ltr"><hr/>
<div class="mw-parser-output"><div class="mw-translate-fuzzy">
<table class="fcinfobox wikitable ct" >
<tr>
<td class="ctTitle">
<h3><span class="mw-headline" id="Spreadsheet_Create"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Spreadsheet_Create.png" class="image"><img alt="Spreadsheet Create.png" src="32px-Spreadsheet_Create.png" width="32" height="32" srcset="/wiki/images/thumb/c/cb/Spreadsheet_Create.png/48px-Spreadsheet_Create.png 1.5x, /wiki/images/c/cb/Spreadsheet_Create.png 2x" /></a> Spreadsheet Create</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Lokalizacja menu
</th></tr>
<tr>
<td class="ctEven">Spreadsheet -&gt; Create
</td></tr>
<tr>
<th class="ctOdd">Workbenches
</th></tr>
<tr>
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=Spreadsheet_Module/pl" class="mw-redirect" title="Spreadsheet Module/pl">Spreadsheet</a>
</td></tr>
<tr>
<th class="ctOdd">Domyślny skrót
</th></tr>
<tr>
<td class="ctEven">żaden
</td></tr>
<tr>
<th class="ctOdd">Zobacz także
</th></tr>
<tr>
<td class="ctEven">żaden
</td></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="Spreadsheet_Create.html"><span class="tocnumber">1</span> <span class="toctext">Spreadsheet Create</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></li>
<li class="toclevel-1 tocsection-3"><a href="#Options"><span class="tocnumber">4</span> <span class="toctext">Options</span></a></li>
<li class="toclevel-1 tocsection-4"><a href="#Scripting"><span class="tocnumber">5</span> <span class="toctext">Scripting</span></a></li>
<li class="toclevel-1 tocsection-5"><a href="#Limitations"><span class="tocnumber">6</span> <span class="toctext">Limitations</span></a></li>
</ul>
</div>
</td></tr></table>
<p><br />
</p>
</div>
<h2><span class="mw-headline" id="Description">Description</span></h2>
<p>This tool adds a new spreadsheet object to the active document. The spreadsheet can then be edited with standard FreeCAD editing methods (right-clicking it in the tree view or using the <a href="Std_Edit.html" title="Std Edit">Std Edit</a> command.
</p>
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
<ol><li> Press the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Spreadsheet_Create.png" class="image"><img alt="Spreadsheet Create.png" src="16px-Spreadsheet_Create.png" width="16" height="16" srcset="/wiki/images/thumb/c/cb/Spreadsheet_Create.png/24px-Spreadsheet_Create.png 1.5x, 32px-Spreadsheet_Create.png 2x" /></a> <a href="Spreadsheet_Create.html" title="Spreadsheet Create">Spreadsheet Create</a></span> button</li>
<li> Press the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Std_Edit.png" class="image"><img alt="Std Edit.png" src="16px-Std_Edit.png" width="16" height="16" srcset="/wiki/images/thumb/a/a1/Std_Edit.png/24px-Std_Edit.png 1.5x, /wiki/images/thumb/a/a1/Std_Edit.png/32px-Std_Edit.png 2x" /></a> <a href="Std_Edit.html" title="Std Edit">Std Edit</a></span> button to edit the spreadsheet contents</li>
<li> Edit the contents of the cells</li>
<li> Close the spreadsheet editor tab when you are finished, the values are saved automatically as you type them</li></ol>
<h2><span class="mw-headline" id="Options">Options</span></h2>
<ul><li> Cell contents can be edited by double-clicking them, or using the edit line on top of the editor</li>
<li> The values are saved on-the-fly and stored in the FreeCAD document</li>
<li> You can enter text, numbers, or formulas, by starting your entry with the = character. Only simple arithmetic (+, -, * and /) and parenthesis are supported at the moment. Example: =B4*2 will show the contents of the B4 cell multiplied by 2.</li>
<li> You can insert values automatically retrieved from the model by using a <a href="Spreadsheet_Controller.html" title="Spreadsheet Controller">Cell controller</a> object</li>
<li> Spreadsheet objects can be imported and exported to the <a href="Spreadsheet_CSV.html" title="Spreadsheet CSV">csv</a> format</li></ul>
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
<p>Spreadsheets can be created from python scripts and <a href="Macros.html" title="Macros">macros</a> using the makeSpreadsheet() function:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre> import Spreadsheet
mySpreadsheet = Spreadsheet.makeSpreadsheet()</pre></div>
<p>The contents of the spreadsheet can then be manipulated like this:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre> mySpreadsheet.Proxy.A1 = "my text"
print mySpreadsheet.Proxy.A1</pre></div>
<p>Spreadsheet objects can also be created purely in the python space, with no existence in the FreeCAD document. These won't be saved when you close the FreeCAD file, so it is only meant for temporary purposes:
</p>
<div class="mw-highlight mw-content-ltr" dir="ltr"><pre> import Spreadsheet
myPySpreadsheet = Spreadsheet.Spreadsheet()
myPySpreadsheet.A1 = "my other text"
print myPySpreadsheet.A1</pre></div>
<h2><span class="mw-headline" id="Limitations">Limitations</span></h2>
<ul><li> This tool is not available below FreeCAd version 0.14</li>
<li> The maximum size of a spreadsheet is currently limited to 26x256 cells (columns between A and Z and rows between 1 and 256)</li>
<li> Columns between A and ZZ and rows between 1 and 16384 <span style="font-size:x-small;"><a href="Release_notes_0.17.html" title="Release notes 0.17">available in version 0.17</a></span></li></ul>
<div style="clear:both"></div>
</div>
</div>
</div><div class="printfooter">
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Spreadsheet_Create/pl&amp;oldid=282373">http://www.freecadweb.org/wiki/index.php?title=Spreadsheet_Create/pl&amp;oldid=282373</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>