Draft Proxy de plan de travail

From FreeCAD Documentation
Revision as of 15:18, 17 April 2018 by Mario52 (talk | contribs) (Created page with "==Comment l'utiliser== # Make sure the Plan de travail is set as you want. # Cliquez Draft -> Utilitaires -> {{KEY|Image:Draft SetWorkingPlaneProxy....")

Draft SetWorkingPlaneProxy

Emplacement du menu
Draft → Utilities → Create WP Proxy
Ateliers
Draft, Arch
Raccourci par défaut
Aucun
Introduit dans la version
-
Voir aussi
Draft SelectPlane

Description

Cette commande placera un objet Proxy dans le document, placé et aligné sur le Working Plane actuel. Lorsque vous utilisez la commande Draft SelectPlane avec un tel objet Proxy sélectionné ou en double-cliquant dessus dans l'arborescence, le plan de travail sera positionné et aligné avec l'objet proxy. La position de la caméra et l'état masqué/affiché des objets sont également stockés dans l'objet Proxy et peuvent être restaurés si les propriétés correspondantes sont activées (voir ci-dessous).

Comment l'utiliser

  1. Make sure the Plan de travail is set as you want.
  2. Cliquez Draft -> Utilitaires -> File:Draft SetWorkingPlaneProxy.png Créer un PT Proxy

Options

  • WP proxies can be manipulated (moved and rotated) like any other FreeCAD object
  • The size and appearance of the proxy object can be set in the View properties
  • The position of the camera is stored in the Proxy object upon creation. That position can be changed anytime by right-clicking the Proxy object, then select the "Write camera position" option to store the current camera position.
  • The hidden/shown state of all the objects currently in the document is also stored in the Proxy object upon creation. That state can be updated anytime by right-clicking the Proxy object, then select the "Write objects state" option.
  • The Working Plane stored in the Proxy object can be restored by double-clicking the Proxy object in the tree view, or by using the Draft SelectPlane tool with the Proxy object selected.
  • 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

  • DonnéesPlacement: Stores the position of this Proxy and the corresponding Working Plane
  • VueDisplay Size: The size of the Proxy object in the 3D view
  • VueArrow Size: The size of the arrows on the 3 axes
  • VueRestore View: If true, the camera position will be restored on activating (by double-click or Draft SelectPlane) this object
  • VueRestore 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

Scripting

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

Example:

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