Draft Downgrade/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "{{GuiCommand/fr|Name=Draft_Downgrade|Name/fr=Draft Downgrade (descend d'un niveau inférieur)|Workbenches=Draft|MenuLocation=Draft -> Downgrade|Shortcut=D N}}")
(Created page with " Cet outil descend d'un niveau inférieur les objets sélectionnés de différentes façons. Si aucun objet n'est sélectionné, vous serez invité à en sélectionner un.")
Line 3: Line 3:
==Description==
==Description==



This tool downgrades selected objects in different ways. If no object is selected, you will be invited to select one.
Cet outil descend d'un niveau inférieur les objets sélectionnés de différentes façons. Si aucun objet n'est sélectionné, vous serez invité à en sélectionner un.


[[Image:Draft_Downgrade_example.jpg|400px]]
[[Image:Draft_Downgrade_example.jpg|400px]]

Revision as of 17:22, 13 February 2014

Draft Downgrade (descend d'un niveau inférieur)

Emplacement du menu
Draft -> Downgrade
Ateliers
Draft
Raccourci par défaut
D N
Introduit dans la version
-
Voir aussi
Aucun

Description

Cet outil descend d'un niveau inférieur les objets sélectionnés de différentes façons. Si aucun objet n'est sélectionné, vous serez invité à en sélectionner un.

How to use

  1. Select one or more objects you widh to downgrade
  2. Press the Draft Downgrade button or press D then N keys

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)