Clone
|
|
| Veja também |
|---|
| Draft → Clone |
| Bancadas de trabalho |
| Draft, Arch |
| Atalho padrão |
| C L |
| Introduzido na versão |
| - |
| Veja também |
| Draft Scale |
Descrição
The Draft Clone command creates linked copies, clones, of selected objects. The shape of a clone is parametric, it will update if its source object changes. But a clone does have its own position, rotation, and scale, and its own View properties. For BIM objects the command creates a special type of clone: an Arch Clone.
The command can be used on 2D objects created with the Draft Workbench or Sketcher Workbench, but also on many 3D objects such as those created with the Part Workbench, PartDesign Workbench or BIM Workbench. Clones of 2D objects can be used in PartDesign Bodies.
Draft Clone next to its source object
Utilização
- Optionally select one or more objects.
- There are several ways to invoke the command:
- Press the
Clone button.
- Select the Modification →
Clone option from the menu.
- Use the keyboard shortcut: C then L.
- Press the
- If you have not yet selected an object: select an object in the 3D View.
Notes
- The scaling of a Draft Clone can be changed in the Property View or, introduced in 1.1, by double clicking it in the Tree View and entering new values in the task panel that opens. The latter option is more efficient.
Propriedades
See also: Property View.
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:
Data
Draft
- DadosFuse (
Bool): specifies if overlapping shapes in the clone are fused or not. - DadosObjects (
LinkListGlobal): specifies the objects that are cloned. - DadosScale (
Vector): specifies the X, Y and Z scale factors.
Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
To create a clone use the make_clone method (introduced in 0.19) of the Draft module. This method replaces the deprecated clone method.
cloned_object = make_clone(obj, delta=None, forcedraft=False)
objcontains the objects to be cloned. It is either a single object or a list of objects.deltais the displacement vector to be applied to the clone.- If
forcedraftisFalseandobjcontains a single BIM object, an Arch Clone is created. SetforcedrafttoTrueto create a Draft Clone instead. cloned_objectis returned with the clone object.
Example:
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 From 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, Highlight Subelements, Join, Split, Upgrade, Downgrade, Convert Wire/B-Spline, Draft to Sketch, Set Slope, Flip Dimension, Shape 2D View
- Draft Tray: Working 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, New Layer, Manage Layers, New Named Group, SelectGroup, Add to Layer, Add to Group, Add to Construction Group, Toggle Wireframe, Working Plane Proxy, Heal, Show Snap Toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Most objects: Edit
- Layer container: Add New Layer, Reassign Properties of All Layers, Merge Layer Duplicates
- Layer: Activate Layer, Reassign Properties of Layer, Select Layer Contents
- Text and label: Open Links
- Wire: Flatten
- Working plane proxy: Save Camera Position, Save Visibility of Objects
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Assembly, BIM, CAM, Draft, FEM, Inspection, Material, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub