Draft WorkingPlaneProxy: Difference between revisions

From FreeCAD Documentation
(Delete the Options section, as it's not needed. The information describes usage not options)
(More details on the properties)
Line 36: Line 36:


<!--T:8-->
<!--T:8-->
=== Data ===
* {{PropertyData|Placement}}: Stores the position of this Proxy and the corresponding Working Plane
* {{PropertyView|Display Size}}: The size of the Proxy object in the 3D view
* {{PropertyData|Placement}}: specifies the position of the proxy object and the corresponding working plane.
* {{PropertyView|Arrow Size}}: The size of the arrows on the 3 axes
** {{PropertyData|Position}}: specifies the coordinates of the proxy object.
** {{PropertyData|Angle}}: specifies the rotation angle of the proxy object.
* {{PropertyView|Restore View}}: If true, the camera position will be restored on activating (by double-click or [[Draft SelectPlane]]) this object
** {{PropertyData|Axis}}: specifies the axis to use for the rotation angle.
* {{PropertyView|Restore State}}: If true, the visibility state of all objects in the current document will be restored on activating (by double-click or [[Draft SelectPlane]]) this object

=== View ===
* {{PropertyView|Display Size}}: specifies the size of the proxy object in the 3D view. If the proxy object is created in the tree view but no element is visible, increase this value until it is visible.
* {{PropertyView|Arrow Size}}: specifies the size of the arrows indicating the three axes of the plane proxy.
* {{PropertyView|Restore View}}: if it is {{TRUE}} the camera position will be restored when using the proxy with {{Button|[[Image:Draft SelectPlane.svg|16px]] [[Draft SelectPlane]]}} or by double-clicking it.
* {{PropertyView|Restore State}}: if it is {{TRUE}} the visibility state of all objects in the current document will be restored when using the proxy with {{Button|[[Image:Draft SelectPlane.svg|16px]] [[Draft SelectPlane]]}} or by double-clicking it.


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

Revision as of 23:24, 20 November 2018

Draft SetWorkingPlaneProxy

Menu location
Draft → Utilities → Create WP Proxy
Workbenches
Draft, Arch
Default shortcut
None
Introduced in version
-
See also
Draft SelectPlane

Description

This command will place a Plane Proxy object aligned to the current Working Plane.

This proxy object can be used like a face to quickly change the working plane using the Draft SelectPlane tool. The camera position and visibility property of the objects in the 3D view can be stored in the proxy object, and can be restored when using the Draft SelectPlane tool.

How to use

  1. Make sure the Working Plane is set as you want.
  2. Go to the menu Draft → Utilities → File:Draft SetWorkingPlaneProxy.png Create WP Proxy.

The working plane stored in the Proxy object can be restored by double-clicking the object in the tree view, or by selecting the Proxy object and using the Draft SelectPlane.

Notes:

  • The position of the camera is stored in the Proxy object upon creation. This position can be updated anytime by right-clicking the Proxy object in the tree view, and selecting "Write camera position".
  • The visibility state of all objects in the current document is also stored in the Proxy object upon creation. This state can be updated anytime by right-clicking the Proxy object in the tree view, and selecting "Write objects state".
  • The size and appearance of the proxy object can be set in the view properties.
  • Plane proxies can be manipulated, moved and rotated, like any other FreeCAD object, so that they are in the desired position.
  • If the RestoreView property is set to True, the camera position will also be restored to the saved position on double-clicking the Proxy object or using Draft SelectPlane
  • If the RestoreState property is set to True, the objects hidden/shown state will also be restored to the saved position on double-clicking the Proxy object or using Draft SelectPlane. If new objects have been added to the document after the state was stored in the Proxy object, the visibility of these new objects will be unchanged

Properties

Data

  • DataPlacement: specifies the position of the proxy object and the corresponding working plane.
    • DataPosition: specifies the coordinates of the proxy object.
    • DataAngle: specifies the rotation angle of the proxy object.
    • DataAxis: specifies the axis to use for the rotation angle.

View

  • ViewDisplay Size: specifies the size of the proxy object in the 3D view. If the proxy object is created in the tree view but no element is visible, increase this value until it is visible.
  • ViewArrow Size: specifies the size of the arrows indicating the three axes of the plane proxy.
  • ViewRestore View: if it is true the camera position will be restored when using the proxy with Draft SelectPlane or by double-clicking it.
  • ViewRestore State: if it is true the visibility state of all objects in the current document will be restored when using the proxy with Draft SelectPlane or by double-clicking it.

Scripting

Working plane proxy objects can easily be created in scripts and macros:

Example:

import FreeCAD,Draft
currentWP = FreeCAD.DraftWorkingPlane
Draft.makeWorkingPlaneProxy(currentWP.getPlacement())