Difference between revisions of "Draft Downgrade/cs"

From FreeCAD Documentation
Jump to: navigation, search
(Created page with "==Použití==")
(Created page with "# Vyberte jeden nebo více objektů, které chcete degradovat # Stiskněte tlačítko {{KEY|16px Degradace}} nebo klávesy {{...")
Line 9: Line 9:
 
==Použití==
 
==Použití==
  
# Select one or more objects you widh to downgrade
+
# Vyberte jeden nebo více objektů, které chcete degradovat
# Press the {{KEY|[[Image:Draft Downgrade.png|16px]] [[Draft Downgrade]]}} button or press {{KEY|D}} then {{KEY|N}} keys
+
# Stiskněte tlačítko {{KEY|[[Image:Draft Downgrade.png|16px]] [[Draft Downgrade|Degradace]]}} nebo klávesy {{KEY|D}} a {{KEY|N}}
  
 
==Options==
 
==Options==

Revision as of 19:27, 17 February 2014

Draft Downgrade.svg 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.

Draft Downgrade example.jpg

Použití

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

Options

The selected objects are modified/downgraded, according to the following conditions (in order):

  • if only one object is selected and it contains more than one face, each face becomes a separate object
  • if there are more than one face in the selection, the subsequent objects are subtracted from the first one
  • if there is only one face in the selection, it gets converted into a wire
  • otherwise all wires found in the selection are exploded into single edges

Example

Scripting

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)
Other languages:
čeština • ‎Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎română • ‎русский • ‎svenska • ‎Türkçe