Draft Mirror: Difference between revisions
(Created page with "<translate> {{GuiCommand|Name=Draft Mirror|Workbenches=Draft, Arch|MenuLocation=Draft → Mirror|SeeAlso=Draft Scale}} ==Desc...") |
(Marked this version for translation) |
||
Line 1: | Line 1: | ||
<translate> |
<translate> |
||
<!--T:1--> |
|||
{{GuiCommand|Name=Draft Mirror|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]|MenuLocation=Draft → Mirror|SeeAlso=[[Draft Scale|Draft Scale]]}} |
{{GuiCommand|Name=Draft Mirror|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]|MenuLocation=Draft → Mirror|SeeAlso=[[Draft Scale|Draft Scale]]}} |
||
==Description== |
==Description== <!--T:2--> |
||
This tool produces a mirrored copy of a selected object, using a [[Part Mirror]] object. The copy is parametrically bound to the original object: If the original object changes, the mirrored copy changes too, but keeps mirrored. |
This tool produces a mirrored copy of a selected object, using a [[Part Mirror]] object. The copy is parametrically bound to the original object: If the original object changes, the mirrored copy changes too, but keeps mirrored. |
||
<!--T:3--> |
|||
[[Image:Draft_Mirror_example.jpg|400px]] |
[[Image:Draft_Mirror_example.jpg|400px]] |
||
==How to use== |
==How to use== <!--T:4--> |
||
# Select objects you wish to mirror |
# Select objects you wish to mirror |
||
# Press the {{KEY|[[Image:Draft Mirror.png|16px]] [[Draft Mirror]]}} button |
# Press the {{KEY|[[Image:Draft Mirror.png|16px]] [[Draft Mirror]]}} button |
||
Line 13: | Line 15: | ||
# Click the other point of the mirror line on the 3D view, or type a [[Draft_Coordinates|coordinate]] |
# Click the other point of the mirror line on the 3D view, or type a [[Draft_Coordinates|coordinate]] |
||
==Properties== |
==Properties== <!--T:5--> |
||
* {{PropertyData|Base}}: The base point of the mirror plane |
* {{PropertyData|Base}}: The base point of the mirror plane |
||
* {{PropertyData|Normal}}: The normal direction of the mirror plane |
* {{PropertyData|Normal}}: The normal direction of the mirror plane |
||
==Options== |
==Options== <!--T:6--> |
||
* After the creation of the mirror, its binding with the original object can be removed using the [[Part_CreateSimpleCopy|Part Create Simple Copy]] tool. |
* After the creation of the mirror, its binding with the original object can be removed using the [[Part_CreateSimpleCopy|Part Create Simple Copy]] tool. |
||
* The mirror of a Draft object can also be turned into a Draft Wire, using [[Draft Downgrade]] then [[Draft Upgrade]]. |
* The mirror of a Draft object can also be turned into a Draft Wire, using [[Draft Downgrade]] then [[Draft Upgrade]]. |
||
==Scripting== |
==Scripting== <!--T:7--> |
||
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: |
||
Line 30: | Line 32: | ||
<translate> |
<translate> |
||
<!--T:8--> |
|||
* Makes mirror(s) of the given object(s) across a plane defined by a line from p1 to p2, and parallel to the current view |
* Makes mirror(s) of the given object(s) across a plane defined by a line from p1 to p2, and parallel to the current view |
||
* The result is a [[Part Mirror]] object |
* The result is a [[Part Mirror]] object |
||
* If the original object changes, the final object changes too but keeps mirrored |
* If the original object changes, the final object changes too but keeps mirrored |
||
<!--T:9--> |
|||
Example: |
Example: |
||
</translate> |
</translate> |
Revision as of 13:23, 8 December 2015
Draft Mirror |
Menu location |
---|
Draft → Mirror |
Workbenches |
Draft, Arch |
Default shortcut |
None |
Introduced in version |
- |
See also |
Draft Scale |
Description
This tool produces a mirrored copy of a selected object, using a Part Mirror object. The copy is parametrically bound to the original object: If the original object changes, the mirrored copy changes too, but keeps mirrored.
How to use
- Select objects you wish to mirror
- Press the Draft Mirror button
- Click the first point of the mirror line on the 3D view, or type a coordinate
- Click the other point of the mirror line on the 3D view, or type a coordinate
Properties
- DataBase: The base point of the mirror plane
- DataNormal: The normal direction of the mirror plane
Options
- After the creation of the mirror, its binding with the original object can be removed using the Part Create Simple Copy tool.
- The mirror of a Draft object can also be turned into a Draft Wire, using Draft Downgrade then Draft Upgrade.
Scripting
The Clone tool can by used in macros and from the python console by using the following function:
mirror (objectslist,p1,p2)
- Makes mirror(s) of the given object(s) across a plane defined by a line from p1 to p2, and parallel to the current view
- The result is a Part Mirror object
- If the original object changes, the final object changes too but keeps mirrored
Example:
import Draft,FeeCAD
p1 = FreeCAD.Vector(0,0,0)
p2 = FreeCAD.Vector(2,2,0)
Draft.mirror(FreeCAD.ActiveDocument.ActiveObject,p1,p2)