Draft Клонировать
Клонировать |
Системное название |
---|
Draft Clone |
Расположение в меню |
Черчение → Клонировать |
Верстаки |
Draft, Arch |
Быстрые клавиши |
C L |
Представлено в версии |
- |
См. также |
Масштаб |
Описание
Этот инструмент создает клон (копию, параметрически связанную с исходным объектом) выбранного объекта. Если исходный объект изменяется, клон тоже меняется, но сохраняет свое положение, поворот и масштаб.
Команду можно применить к 2D-объектам, созданным в верстаке Draft или верстаке Sketcher, а также на многих 3D-объектах, которые созданы в верстаке Part, верстаке PartDesign или верстаке Arch. Клоны 2D-объектов могут быть использованы при создании тел.
Клонированная копия рядом с исходным объектом
Применение
- Выберите один или несколько объектов.
- Есть несколько способов вызвать команду:
- Нажатием кнопки Клонировать.
- Через меню Modification → Клонировать.
- Используйте сочетание клавиатуры: C затем L.
- Если вы еще не выбрали объект: выберите его в окне 3D Вида.
Свойства
Смотрите также: Редактор свойств.
An object created with the Draft Clone command is derived from a Part Part2DObject, a Part Feature object or, if an Arch Clone is created, from the object type of the source object. It inherits all properties from that object. A clone derived from one of the first two objects also has the following additional properties:
Данные
Draft
- ДанныеFuse (
Bool
): specifies if overlapping shapes in the clone are fused or not. - ДанныеObjects (
LinkListGlobal
): specifies the objects that are cloned. - ДанныеScale (
Vector
): specifies the X, Y and Z scale factors.
Программирование
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
To create a clone use the make_clone
method (introduced in version 0.19) of the Draft module. This method replaces the deprecated clone
method.
cloned_object = make_clone(obj, delta=None, forcedraft=False)
obj
contains the objects to be cloned. It is either a single object or a list of objects.delta
is the displacement vector to be applied to the clone.- If
forcedraft
isFalse
andobj
contains a single Arch object an Arch Clone is created. Setforcedraft
toTrue
to create a Draft Clone instead. cloned_object
is returned with the clone object.
Пример:
import FreeCAD as App
import Draft
doc = App.newDocument()
place = App.Placement(App.Vector(1000, 0, 0), App.Rotation())
polygon1 = Draft.make_polygon(3, 750)
polygon2 = Draft.make_polygon(5, 750, placement=place)
vector = App.Vector(2600, 500, 0)
cloned_object = Draft.clone([polygon1, polygon2], delta=vector)
cloned_object.Fuse = True
doc.recompute()
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- Начинающим
- Установка: Загрузка, Windows, Linux, Mac, Дополнительных компонентов, Docker, AppImage, Ubuntu Snap
- Базовая: О FreeCAD, Интерфейс, Навигация мыши, Методы выделения, Имя объекта, Настройки, Верстаки, Структура документа, Свойства, Помоги FreeCAD, Пожертвования
- Помощь: Учебники, Видео учебники
- Верстаки: Std Base, Arch, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web