Draft Downgrade/ru: Difference between revisions

From FreeCAD Documentation
(Created page with "Пример:")
No edit summary
Line 39: Line 39:
== Скриптование ==
== Скриптование ==


Инструмент Downgrade можно использовать в сценариях python и [[макросы]], используя следующую функцию:
Инструмент Даунгрейд можно использовать в сценариях python и [[макросы]], используя следующую функцию:


{{Code|code=
{{Code|code=

Revision as of 08:19, 5 December 2018

Draft Downgrade

Системное название
Draft Downgrade
Расположение в меню
Черчение -> Перестроить
Верстаки
Draft, Arch
Быстрые клавиши
D N
Представлено в версии
-
См. также
Обновить

Описание

Этот инструмент разбивает выбранные объекты (преобразует объект в несколько объектов нижнего уровня). Если объекты не выбраны, попросите их выбрать.

Использование

  1. Выберите один или несколько объектов, которые вы хотите понизить
  2. Нажмите кнопку Draft Downgrade или нажмите D, затем клавиши N

Опции

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

Пример

Скриптование

Инструмент Даунгрейд можно использовать в сценариях python и макросы, используя следующую функцию:

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 dictionary containing two lists, a list of new objects and a list of objects to be deleted

Пример:

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