TechDraw ShareView: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
 
(15 intermediate revisions by 3 users not shown)
Line 2: Line 2:
<translate>
<translate>


<!--T:1-->
{{Docnav
{{Docnav
|[[TechDraw_MoveView|MoveView]]
|[[TechDraw_ClipGroup|ClipGroup]]
|[[TechDraw_ClipGroup|ClipGroup]]
|[[TechDraw_ProjectShape|ProjectShape]]
|[[TechDraw_Workbench|TechDraw]]
|[[TechDraw_Workbench|TechDraw]]
|IconL=TechDraw_MoveView.svg
|IconL=TechDraw_ClipGroup.svg
|IconR=TechDraw_ClipGroup.svg
|IconR=TechDraw_ProjectShape.svg
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
}}
}}


<!--T:2-->
{{GuiCommand
{{GuiCommand
|Name=TechDraw CopyView
|Name=TechDraw ShareView
|MenuLocation=TechDraw → Copy View
|MenuLocation=TechDraw → TechDraw Views → Share View
|Workbenches=[[TechDraw_Workbench|TechDraw]]
|Workbenches=[[TechDraw_Workbench|TechDraw]]
|Version=0.20
|Version=0.20
|SeeAlso=
|SeeAlso=[[TechDraw_MoveView|TechDraw MoveView]]
}}
}}


==Description==
==Description== <!--T:3-->


<!--T:4-->
The CopyView tool copies a View and all its dependents (Balloons, Dimensions, etc) to a second Page.
The '''TechDraw ShareView''' tool makes a View and all its dependents (Balloons, Dimensions, etc) visible on a second Page.


==Usage==
==Usage== <!--T:5-->


<!--T:6-->
# (Optional) Select a View, a from Page and a to Page.
# Optionally select a View, a from Page and a to Page. The pages must be selected in that order.
# Press the {{Button|[[Image:TechDraw_CopyView.svg|16px]] [[TechDraw_CopyView|Copy View]]}} button
# There are several ways to invoke the tool:
#* Press the {{Button|[[Image:TechDraw_ShareView.svg|16px]] [[TechDraw_ShareView|Share View]]}} button.
#* Select the {{MenuCommand|TechDraw → TechDraw Views → [[Image:TechDraw_ShareView.svg|16px]] Share View}} option from the menu.
# A dialog will open to allow you to select a View, from Page and to Page.
# A dialog will open to allow you to select a View, from Page and to Page.
# Press the {{Button|OK}} button.


==Notes== <!--T:10-->
==Scripting==


<!--T:11-->
{{Emphasis|See also:}} [[TechDraw_API|TechDraw API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
There is only one View object after the share operation. Any changes made to the View will be reflected in both Pages. If the View is deleted from one Page it will also be deleted from the other.


==Scripting== <!--T:7-->
The CopyView tool can be used in [[Macros|macros]] and from the [[Python|Python]] console by using the following functions:

<!--T:8-->
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].

<!--T:9-->
The ShareView tool can be used in [[Macros|macros]] and from the [[Python|Python]] console by using the following functions:


</translate>
</translate>
Line 42: Line 56:
}}
}}
<translate>
<translate>

==Notes==

There is only one View object after the copy operation. Any changes made to the View will be reflected in both Pages. If the View is deleted from one Page it will also be deleted from the other.




<!--T:12-->
{{Docnav
{{Docnav
|[[TechDraw_MoveView|MoveView]]
|[[TechDraw_ClipGroup|ClipGroup]]
|[[TechDraw_ClipGroup|ClipGroup]]
|[[TechDraw_ProjectShape|ProjectShape]]
|[[TechDraw_Workbench|TechDraw]]
|[[TechDraw_Workbench|TechDraw]]
|IconL=TechDraw_MoveView.svg
|IconL=TechDraw_ClipGroup.svg
|IconR=TechDraw_ClipGroup.svg
|IconR=TechDraw_ProjectShape.svg
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
}}
}}

Latest revision as of 08:54, 3 April 2024

Other languages:

TechDraw ShareView

Menu location
TechDraw → TechDraw Views → Share View
Workbenches
TechDraw
Default shortcut
None
Introduced in version
0.20
See also
None

Description

The TechDraw ShareView tool makes a View and all its dependents (Balloons, Dimensions, etc) visible on a second Page.

Usage

  1. Optionally select a View, a from Page and a to Page. The pages must be selected in that order.
  2. There are several ways to invoke the tool:
    • Press the Share View button.
    • Select the TechDraw → TechDraw Views → Share View option from the menu.
  3. A dialog will open to allow you to select a View, from Page and to Page.
  4. Press the OK button.

Notes

There is only one View object after the share operation. Any changes made to the View will be reflected in both Pages. If the View is deleted from one Page it will also be deleted from the other.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

The ShareView tool can be used in macros and from the Python console by using the following functions:

import TechDrawTools
#MoveView with a True parameter in the last position performs a copy
TechDrawTools.MoveView(viewName, fromPageName, toPageName, True)