Draft Clone
Расположение в меню |
---|
Черчение → Клонировать |
Верстаки |
Draft, Arch |
Быстрые клавиши |
Никто |
Представлено в версии |
- |
См. также |
Масштаб |
Description
Описание
Этот инструмент создает клон (копию, параметрически связанную с исходным объектом) выбранного объекта. Если исходный объект изменяется, клон тоже меняется, но сохраняет свое положение, поворот и масштаб.
The Clone tool can be used on 2D shapes created with the Draft Workbench, but can also be used on many types of 3D objects such as those created with the Part, PartDesign, or Arch Workbenches.
To create simple copies, that are completely independent from an original object, use Draft Move, Draft Rotate, and Draft Scale. To position copies in an orthogonal array use Draft Array; to position copies along a path use Draft PathArray; to position copies at specified points use Draft PointArray.
Usage
Depending on its options, the Draft Scale tool also creates a clone at a specified scale.
Clones of 2D objects created with the Draft or Sketcher Workbenches will also be 2D objects, and therefore can be used as such for the PartDesign Workbench.
All Arch Workbench objects have the possibility to behave as clones by using their DataCloneOf property. If you use the Draft Clone tool on a selected Arch object, you will produce such an Arch clone instead of a regular Draft clone.
Limitations
Currently, Sketcher Sketches cannot be mapped to the faces of a clone.
Oпции
- Клоны 2D-объектов (черновик или эскиз) также будут двумерными объектами и поэтому могут использоваться как таковые для Part Design.
- Все объекты Arch имеют возможность вести себя как клон (используя их свойство CloneOf). Если вы используете инструмент «Черновик клонирования» для выбранного объекта Arch, вы создадите такой клонированный объект Arch вместо обычного клонирования проекта.
Properties
- DataObjects: specifies a list of base objects which are being cloned.
- DataScale: specifies the scaling factor for the clone, in each X, Y, and Z direction.
- DataFuse: if it is
true
and DataObjects includes many shapes that intersect each other, the resulting clone will be fuse them together into a single shape, or make a compound of them. introduced in version 0.17
Scripting
See also: Draft API and FreeCAD Scripting Basics.
The Clone tool can be used in macros and from the Python console by using the following function:
cloned_object = clone(obj, delta=None, forcedraft=False)
- Creates a
cloned_object
fromobj
, which can be a single object or a list of objects. - If given,
delta
is aFreeCAD.Vector
that moves the new clone away from the original position of the base object. - If
forcedraft
isTrue
, the resulting object will be a Draft clone, and not an Arch clone, even ifobj
is an Arch Workbench object.
The fusion of the objects that are part of the clone can be achieved by setting its Fuse
attribute to True
.
Example:
import FreeCAD, Draft
place = FreeCAD.Placement(FreeCAD.Vector(1000, 0, 0), FreeCAD.Rotation())
Polygon1 = Draft.makePolygon(3, 750)
Polygon2 = Draft.makePolygon(5, 750, placement=place)
obj = [Polygon1, Polygon2]
vector = FreeCAD.Vector(2600, 500, 0)
cloned_object = Draft.clone(obj, delta=vector)
cloned_object.Fuse = True
FreeCAD.ActiveDocument.recompute()
- Основы: Coordinates, Constraining, Snapping (Near, Extension, Parallel, Grid, Endpoint, Midpoint, Perpendicular, Angle, Center, Ortho, Intersection, Special, Dimensions, Working plane)
- Черчение: Line, Wire, Circle, Arc, Ellipse, Polygon, Rectangle, Text, Dimension, BSpline, Point, ShapeString, Facebinder, Bezier Curve, Label
- Редактирование: Move, Rotate, Offset, Trimex, Upgrade, Downgrade, Scale, Edit, Wire to BSpline, Add point, Delete point, Shape 2D View, Draft to Sketch, Array, Path Array, Point Array, Clone, Drawing, Mirror, Stretch
- Утилиты: Set working plane, Finish line, Close line, Undo line, Toggle construction mode, Toggle continue mode, Apply style, Toggle display mode, Add to group, Select group contents, Toggle snap, Toggle grid, Show snap bar, Heal, Flip Dimension, VisGroup, Slope, AutoGroup, Set Working Plane Proxy, Add to Construction group
- Дополнительно: Preferences, Import-Export Preferences (DXF/DWG, SVG, OCA, DAT); Draft API

- Установка: Windows, Linux, Mac; Начинающим
- Базовая: О FreeCAD, Верстаки, Настройки, Структура документа, Настройка интерфейса, Свойства, Модель мыши; Учебники
- Верстаки: Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Plot, Points, Raytracing, Reverse Engineering, Robot, Ship, Sketcher, Spreadsheet, Start, Surface workbench, TechDraw, Test Framework, Web
- Скрипты: Введение в Python, Учебник скриптов FreeCAD, Основы скриптов FreeCAD, Установка макросов, Команды графического интерфейса, Единицы Модули: Создание модулей, Создание верстаков, Добавление верстаков Сетки: Сеточные скрипты, Модуль сеток Детали: Модуль Part, Скрипты топологических данных, PythonOCC, Из Mesh в Part Coin scenegraph: The Coin/Inventor scenegraph, Pivy Интерфейс Qt: PySide, Использование графического интерфейса FreeCAD, Создание диалогов Параметрические объекты: Скриптовые объекты Прочее: Кусочки кода, Функции рисования линий, Встраивание FreeCAD, Библиотека векторной математики FreeCAD, Хаб опытных пользователей, Python, Макросы, Основы скриптов FreeCAD, Topological data scripting