Draft Downgrade/cs: Difference between revisions

From FreeCAD Documentation
(Created page with "<gallery widths="300" heights="200"> File:Draft Downgrade 01.png|Kompletní tvar File:Draft Downgrade 02.png|Degradovaný tvar s rozpojenými a oddělenými plochami </gallery>")
(Created page with "==Skriptování==")
Line 27: Line 27:
</gallery>
</gallery>


==Scripting==
==Skriptování==


The Downgrade tool can be used in python scripts and [[macros]] by using the following function:
The Downgrade tool can be used in python scripts and [[macros]] by using the following function:

Revision as of 18:35, 17 February 2014

Kreslení Degradace/cs

Umístění Menu
Draft -> Downgrade
Pracovní stoly
Kreslení, Architektura
Výchozí zástupce
D N
Představen ve verzi
-
Viz také
Draft Upgrade

Popis

Tento nástroj degraduje vybrané objekty různými způsoby. Není-li vybrán žádný objekt, budete vyzvání k výběru objektu.

Použití

  1. Vyberte jeden nebo více objektů, které chcete degradovat
  2. Stiskněte tlačítko Degradace nebo klávesy D a N

Volby

Vybrané objektu jsou upraveny/degradovány podle následujících podmínek (v tomot pořadí)::

  • pokud je vybrán pouze jeden objekt a ten obsahuje více než jednu plochu, stane se každá plocha samostatným objektem
  • je-li více než jedna plocha ve výběru, následující objety jsou odebrány z prvního
  • je-li ve výberu pouze jedna plocha, je zkonvertována na drát
  • jinak jsou všechny dráty nalezené ve výběru rozděleny do samostatných hran

Příklad

Skriptování

The Downgrade tool can be used in python scripts and macros by using the following function:

 downgrade (objects [delete], [force])
  • Downgrades the given object(s) (can be an object or a list of objects).
  • If delete is True, old objects are deleted.
  • The force attribute can be used to force a certain way of downgrading. It can be: explode, shapify, subtr, splitFaces, cut2, getWire, splitWires.
  • Returns a dictionnary containing two lists, a list of new objects and a list of objects to be deleted

Example:

 import FreeCADGui,Draft
 selection = FreeCADGui.Selection.getSelection()
 Draft.downgrade(selection)