Draft WorkingPlaneProxy: Difference between revisions
(Button text.) |
|||
(39 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Page in progress}} |
|||
<languages/> |
<languages/> |
||
<translate> |
<translate> |
||
Line 5: | Line 4: | ||
<!--T:19--> |
<!--T:19--> |
||
{{Docnav |
{{Docnav |
||
|[[Draft_Layer|Layer]] |
|||
|[[Draft_ToggleDisplayMode|ToggleDisplayMode]] |
|[[Draft_ToggleDisplayMode|ToggleDisplayMode]] |
||
|[[Draft_ApplyStyle|ApplyStyle]] |
|||
|[[ |
|[[Draft_Workbench|Draft]] |
||
|IconL=Draft_Layer.svg |
|||
| |
|IconL=Draft_ToggleDisplayMode.svg |
||
|IconR=Draft_ApplyStyle.svg |
|||
|IconC=Workbench_Draft.svg |
|IconC=Workbench_Draft.svg |
||
}} |
}} |
||
Line 17: | Line 16: | ||
|Name=Draft WorkingPlaneProxy |
|Name=Draft WorkingPlaneProxy |
||
|MenuLocation=Utilities → Create working plane proxy |
|MenuLocation=Utilities → Create working plane proxy |
||
|Workbenches=[[ |
|Workbenches=[[Draft_Workbench|Draft]], [[Arch_Workbench|Arch]] |
||
|SeeAlso=[[Draft_SelectPlane|Draft SelectPlane]] |
|SeeAlso=[[Draft_SelectPlane|Draft SelectPlane]] |
||
}} |
}} |
||
Line 24: | Line 23: | ||
<!--T:2--> |
<!--T:2--> |
||
The [[Image:Draft_WorkingPlaneProxy.svg|24px]] '''Draft WorkingPlaneProxy''' command creates a working plane proxy to save the current [[Draft_SelectPlane|Draft working plane]]. A working plane proxy can be used to quickly restore a working plane. The camera position and visibility of the objects in the [[3D_view|3D view]] are also saved in the working plane proxy and can, [[#Properties|optionally]], be restored as well. |
|||
This command will place a Plane Proxy object aligned to the current [[Draft_SelectPlane|Working Plane]]. |
|||
⚫ | |||
This proxy object can be used like a face to quickly change the working plane using the [[Draft_SelectPlane|Draft SelectPlane]] tool. The camera position and visibility of the objects in the 3D view can be saved in the proxy object, and restored at anytime when the [[Draft_SelectPlane|Draft SelectPlane]] tool is used. |
|||
</translate> |
</translate> |
||
Line 38: | Line 34: | ||
<!--T:3--> |
<!--T:3--> |
||
# Optionally change the [[Draft_SelectPlane|working plane]]. |
|||
# Make sure the [[Draft SelectPlane|Working Plane]] is set as you want. |
|||
# Optionally change the [[3D_view|3D view]]. |
|||
⚫ | |||
# Optionally change the visibility state of objects in the document. |
|||
# There are several ways to invoke the command: |
|||
#* Press the {{Button|[[Image:Draft_WorkingPlaneProxy.svg|16px]] [[Draft_WorkingPlaneProxy|Create working plane proxy]]}} button. |
|||
⚫ | |||
# A working plane proxy is created. |
|||
# To align the [[Draft_SelectPlane|working plane]] with a working plane proxy, double-click the working plane proxy in the [[Tree_view|Tree view]] or use it with the [[Draft_SelectPlane|Draft SelectPlane]] command. |
|||
== |
== Context menu == <!--T:24--> |
||
⚫ | |||
For Draft WorkingPlaneProxy |
For a Draft WorkingPlaneProxy these additional options are available in the [[Tree_view|Tree view]] context menu: |
||
⚫ | |||
⚫ | |||
* {{MenuCommand|[[Image:Draft_SelectPlane.svg|16px]] Write |
* {{MenuCommand|[[Image:Draft_SelectPlane.svg|16px]] Write camera position}}: updates the {{PropertyView|View Data}} property of the working plane proxy with the current [[3D_view|3D view]] camera settings. |
||
⚫ | |||
==Notes== |
==Notes== <!--T:27--> |
||
<!--T:11--> |
<!--T:11--> |
||
* |
* Working plane proxies can be [[Draft_Move|moved]] and [[Draft_Rotate|rotated]] like any other object. Use [[Image:Draft_Snap_Center.svg|16px]] [[Draft_Snap_Center|Draft Snap Center]] to snap to their {{PropertyData|Placement}} point. |
||
* Plane proxies can be moved and rotated like any other object so that they define the desired working plane. Their visual appearance can also be changed in the [[Property_editor|Property editor]]. |
|||
==Properties== <!--T:7--> |
==Properties== <!--T:7--> |
||
<!--T:28--> |
|||
See also: [[ |
See also: [[Property_editor|Property editor]]. |
||
<!--T:29--> |
|||
A Draft WorkingPlaneProxy object is derived from an [[App_FeaturePython|App FeaturePython]] object and inherits all its properties. It also has the following additional properties: |
A Draft WorkingPlaneProxy object is derived from an [[App_FeaturePython|App FeaturePython]] object and inherits all its properties. It also has the following additional properties: |
||
=== Data === |
=== Data === <!--T:30--> |
||
<!--T:31--> |
|||
{{TitleProperty|Base}} |
{{TitleProperty|Base}} |
||
<!--T:8--> |
<!--T:8--> |
||
* {{PropertyData|Placement|Placement}}: specifies the position of the |
* {{PropertyData|Placement|Placement}}: specifies the position of the working plane proxy in the [[3D_view|3D view]]. See [[Placement|Placement]]. |
||
* {{PropertyData|Shape|Shape|Hidden}}: specifies the shape of the |
* {{PropertyData|Shape|Shape|Hidden}}: specifies the shape of the working plane proxy. |
||
=== View === |
=== View === <!--T:32--> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
<!--T:34--> |
|||
{{TitleProperty|Base}} |
{{TitleProperty|Base}} |
||
<!--T:35--> |
|||
* {{PropertyView|Line Color|Color}}: specifies the color of all elements of the |
* {{PropertyView|Line Color|Color}}: specifies the color of all elements of the working plane proxy. |
||
* {{PropertyView|Line Width|Float}}: specifies the line width of the axes and arrow symbols. |
* {{PropertyView|Line Width|Float}}: specifies the line width of the axes and arrow symbols. |
||
* {{PropertyView|Restore State|Bool}}: specifies if the {{PropertyView|Visibility Map}} is restored when |
* {{PropertyView|Restore State|Bool}}: specifies if the {{PropertyView|Visibility Map}} is restored when the [[Draft_SelectPlane|working plane]] is aligned with the working plane proxy. |
||
* {{PropertyView|Restore View|Bool}}: specifies if the {{PropertyView|View Data}} is restored when |
* {{PropertyView|Restore View|Bool}}: specifies if the {{PropertyView|View Data}} is restored when the [[Draft_SelectPlane|working plane]] is aligned with the working plane proxy. |
||
* {{PropertyView|Transparency|Percent}}: specifies the transparency of the face of the |
* {{PropertyView|Transparency|Percent}}: specifies the transparency of the face of the working plane proxy. |
||
* {{PropertyView|View Data|FloatList}}: specifies the camera position and settings. |
* {{PropertyView|View Data|FloatList}}: specifies the camera position and settings. |
||
* {{PropertyView|Visibility Map|Map|Hidden}}: specifies the visibility state of objects. |
* {{PropertyView|Visibility Map|Map|Hidden}}: specifies the visibility state of objects. |
||
<!--T:36--> |
|||
⚫ | |||
<!--T:12--> |
|||
⚫ | |||
⚫ | |||
==Scripting== <!--T:5--> |
==Scripting== <!--T:5--> |
||
<!--T:13--> |
<!--T:13--> |
||
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[ |
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]]. |
||
<!--T:14--> |
<!--T:14--> |
||
Line 95: | Line 104: | ||
<!--T:15--> |
<!--T:15--> |
||
If the [[ |
If the [[Draft_Workbench|Draft Workbench]] is active the FreeCAD application object has a {{incode|DraftWorkingPlane}} property which stores the current working plane. The {{Incode|Placement}} from the {{Incode|getPlacement}} method of the {{incode|DraftWorkingPlane}} object can be used to create an aligned working plane proxy. The {{Incode|Placement}} of a working plane proxy in turn can be used to realign the working plane. |
||
</translate> |
</translate> |
||
Line 132: | Line 141: | ||
<!--T:18--> |
<!--T:18--> |
||
{{Docnav |
{{Docnav |
||
|[[Draft_Layer|Layer]] |
|||
|[[Draft_ToggleDisplayMode|ToggleDisplayMode]] |
|[[Draft_ToggleDisplayMode|ToggleDisplayMode]] |
||
|[[Draft_ApplyStyle|ApplyStyle]] |
|||
|[[ |
|[[Draft_Workbench|Draft]] |
||
|IconL=Draft_Layer.svg |
|||
| |
|IconL=Draft_ToggleDisplayMode.svg |
||
|IconR=Draft_ApplyStyle.svg |
|||
|IconC=Workbench_Draft.svg |
|IconC=Workbench_Draft.svg |
||
}} |
}} |
Latest revision as of 17:30, 3 December 2023
Draft WorkingPlaneProxy |
Menu location |
---|
Utilities → Create working plane proxy |
Workbenches |
Draft, Arch |
Default shortcut |
None |
Introduced in version |
- |
See also |
Draft SelectPlane |
Description
The Draft WorkingPlaneProxy command creates a working plane proxy to save the current Draft working plane. A working plane proxy can be used to quickly restore a working plane. The camera position and visibility of the objects in the 3D view are also saved in the working plane proxy and can, optionally, be restored as well.
Three working plane proxies showing different orientations and offsets
Usage
- Optionally change the working plane.
- Optionally change the 3D view.
- Optionally change the visibility state of objects in the document.
- There are several ways to invoke the command:
- Press the Create working plane proxy button.
- Select the Utilities → Create working plane proxy option from the menu.
- A working plane proxy is created.
- To align the working plane with a working plane proxy, double-click the working plane proxy in the Tree view or use it with the Draft SelectPlane command.
For a Draft WorkingPlaneProxy these additional options are available in the Tree view context menu:
- Write camera position: updates the ViewView Data property of the working plane proxy with the current 3D view camera settings.
- Write objects state: updates the ViewVisibility Map property of the working plane proxy with the current visibility state of objects in the document.
Notes
- Working plane proxies can be moved and rotated like any other object. Use Draft Snap Center to snap to their DataPlacement point.
Properties
See also: Property editor.
A Draft WorkingPlaneProxy object is derived from an App FeaturePython object and inherits all its properties. It also has the following additional properties:
Data
Base
- DataPlacement (
Placement
): specifies the position of the working plane proxy in the 3D view. See Placement. - Data (Hidden)Shape (
Shape
): specifies the shape of the working plane proxy.
View
Base
- ViewLine Color (
Color
): specifies the color of all elements of the working plane proxy. - ViewLine Width (
Float
): specifies the line width of the axes and arrow symbols. - ViewRestore State (
Bool
): specifies if the ViewVisibility Map is restored when the working plane is aligned with the working plane proxy. - ViewRestore View (
Bool
): specifies if the ViewView Data is restored when the working plane is aligned with the working plane proxy. - ViewTransparency (
Percent
): specifies the transparency of the face of the working plane proxy. - ViewView Data (
FloatList
): specifies the camera position and settings. - View (Hidden)Visibility Map (
Map
): specifies the visibility state of objects.
Draft
- ViewArrow Size (
Length
): specifies the size of the arrow symbols displayed at the tip of the three axes. - ViewDisplay Size (
Length
): specifies the length and width of the working plane proxy.
Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
To create a Draft WorkingPlaneProxy use the make_workingplaneproxy
method of the Draft module.
If the Draft Workbench is active the FreeCAD application object has a DraftWorkingPlane
property which stores the current working plane. The Placement
from the getPlacement
method of the DraftWorkingPlane
object can be used to create an aligned working plane proxy. The Placement
of a working plane proxy in turn can be used to realign the working plane.
# This code only works if the Draft Workbench is active!
import FreeCAD as App
import FreeCADGui as Gui
import Draft
doc = App.newDocument()
workplane = App.DraftWorkingPlane
place = workplane.getPlacement()
proxy = Draft.make_workingplaneproxy(place)
proxy.ViewObject.DisplaySize = 3000
proxy.ViewObject.ArrowSize = 200
axis2 = App.Vector(1, 1, 1)
point2 = App.Vector(3000, 0, 0)
place2 = App.Placement(point2, App.Rotation(axis2, 90))
proxy2 = Draft.make_workingplaneproxy(place2)
proxy2.ViewObject.DisplaySize = 3000
proxy2.ViewObject.ArrowSize = 200
workplane.setFromPlacement(proxy2.Placement, rebase=True)
Gui.Snapper.setGrid()
doc.recompute()
- Drafting: Line, Polyline, Fillet, Arc, Arc by 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, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select 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, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- 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, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub