Draft Clone: Difference between revisions

From FreeCAD Documentation
No edit summary
(Marked this version for translation)
Line 13: Line 13:
# Press the {{KEY|[[Image:Draft Clone.png|16px]] [[Draft Clone]]}} button
# Press the {{KEY|[[Image:Draft Clone.png|16px]] [[Draft Clone]]}} button


==Options==
==Options== <!--T:9-->
* Clones of 2D objects (Draft or Sketch) will also be 2D objects, and therefore can be used as such for [[PartDesign Workbench|Part Design]].
* Clones of 2D objects (Draft or Sketch) will also be 2D objects, and therefore can be used as such for [[PartDesign Workbench|Part Design]].
* All [[Arch Workbench|Arch]] objects have the possibility to behave as a clone (using their CloneOf property). If you use the Draft Clone tool on a selected Arch object, you will produce such an Arch cloned object instead of a regular Draft clone.
* All [[Arch Workbench|Arch]] objects have the possibility to behave as a clone (using their CloneOf property). If you use the Draft Clone tool on a selected Arch object, you will produce such an Arch cloned object instead of a regular Draft clone.

Revision as of 21:52, 14 December 2015

Draft Clone

Menu location
Draft → Clone
Workbenches
Draft, Arch
Default shortcut
None
Introduced in version
-
See also
Draft Scale

Description

This tool produces a clone (a copy that is parametrically bound to the original object) of a selected object. If the original object changes, the clone changes too, but keeps its position, rotation and scale.

How to use

  1. Select objects you wish to clone
  2. Press the Draft Clone button

Options

  • Clones of 2D objects (Draft or Sketch) will also be 2D objects, and therefore can be used as such for Part Design.
  • All Arch objects have the possibility to behave as a clone (using their CloneOf property). If you use the Draft Clone tool on a selected Arch object, you will produce such an Arch cloned object instead of a regular Draft clone.

Properties

  • DataScale: Specifies an optional scale factor for the clone
  • The result of the Draft Scale tool is also a clone

Scripting

The Clone tool can by used in macros and from the python console by using the following function:

clone (obj,[delta])
  • Makes a clone of the given object(s).
  • The clone is an exact, linked copy of the given object.
  • If the original object changes, the final object changes too. Optionally, you can give a delta Vector to move the clone away from the original position.

Example:

import Draft
Draft.clone(FreeCAD.ActiveDocument.ActiveObject)