Draft Clone: Difference between revisions
m (template fr) |
Renatorivo (talk | contribs) (<translate>) |
||
Line 1: | Line 1: | ||
<translate> |
|||
{{GuiCommand|Name=Draft Clone|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]|MenuLocation=Draft -> Clone|SeeAlso=[[Draft Scale]]}} |
{{GuiCommand|Name=Draft Clone|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]|MenuLocation=Draft -> Clone|SeeAlso=[[Draft Scale]]}} |
||
==Description== |
==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. |
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. |
||
Line 8: | Line 8: | ||
==How to use== |
==How to use== |
||
# Select objects you wish to clone |
# Select objects you wish to clone |
||
# Press the {{KEY|[[Image:Draft Clone.png|16px]] [[Draft Clone]]}} button |
# Press the {{KEY|[[Image:Draft Clone.png|16px]] [[Draft Clone]]}} button |
||
==Properties== |
==Properties== |
||
* {{PropertyData|Scale}}: Specifies an optional scale factor for the clone |
* {{PropertyData|Scale}}: Specifies an optional scale factor for the clone |
||
* The result of the [[Draft Scale]] tool is also a clone |
* The result of the [[Draft Scale]] tool is also a clone |
||
==Scripting== |
==Scripting== |
||
The Clone tool can by used in [[macros]] and from the python console by using the following function: |
The Clone tool can by used in [[macros]] and from the python console by using the following function: |
||
</translate> |
|||
⚫ | |||
<syntaxhighlight> |
|||
⚫ | |||
clone (obj,[delta]) |
|||
clone away from the original position. |
|||
</syntaxhighlight> |
|||
<translate> |
|||
* Makes a clone of the given object(s). |
|||
⚫ | |||
⚫ | |||
Example: |
Example: |
||
</translate> |
|||
<syntaxhighlight> |
|||
import Draft |
import Draft |
||
Draft.clone(FreeCAD.ActiveDocument.ActiveObject) |
Draft.clone(FreeCAD.ActiveDocument.ActiveObject) |
||
</syntaxhighlight> |
|||
{{languages | {{es|Draft_Clone/es}} {{fr|Draft_Clone/fr}} {{it|Draft_Clone/it}} }} |
|||
{{clear}} |
|||
<languages/> |
Revision as of 16:42, 16 February 2014
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
- Select objects you wish to clone
- Press the Draft Clone button
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)