Draft: Piano di lavoro proxy
Piano proxy |
Posizione nel menu |
---|
Draft → Utilità → Piano proxy |
Ambiente |
Draft, Arch |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
Piano di lavoro |
Descrizione
Questo comando posiziona un oggetto proxy nel documento, posizionato e allineato al corrente Piano di lavoro. Quando si utilizza il comando Piano di lavoro con un tale oggetto proxy selezionato, o si fà doppio click su di esso nella vista ad albero, il piano di lavoro viene posizionato e allineato con l'oggetto proxy. La posizione della fotocamera e lo stato di visibile o nascosto degli oggetti sono anche memorizzati nell'oggetto Proxy e possono essere ripristinati se sono abilitate le proprietà corrispondenti (vedi sotto).
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 of the objects in the 3D view can be saved in the proxy object, and restored at anytime when the Draft SelectPlane tool is used.
Three working plane proxies showing different orientations and offsets
Uso
- Assicurarsi che il Piano di lavoro sia impostato come si desidera.
- Premere Draft -> Utilità -> File:Draft SetWorkingPlaneProxy.png Piano proxy
Notes:
- 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 button.
- The position of the camera is stored in the Proxy object upon creation. This position can be updated anytime: zoom, pan and rotate the view as you wish, then right-click the Proxy object in the tree view, and select Write camera position.
- The visibility state of all objects is also stored in the Proxy object upon creation. This state can be updated anytime: set the VistaVisibility property of the objects to
true
orfalse
as desired, then right-click the Proxy object in the tree view, and select Write objects state. - 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.
Proprietà
- DatiPlacement: Memorizza la posizione di questo Proxy e del piano di lavoro corrispondente
- VistaDisplay Size: La dimensione dell'oggetto Proxy nella vista 3D
- VistaArrow Size: La dimensione delle frecce sui 3 assi
- VistaRestore View: Se true, la posizione della telecamera viene ripristinata attivando questo oggetto con un doppio clic o con Seleziona piano
- VistaRestore State: Se è true, lo stato di visibilità di tutti gli oggetti nel documento corrente viene ripristinato attivando questo oggetto con un doppio clic o con Seleziona piano
View
- VistaDisplay Size: specifies both length and width of the proxy object. If the object is created in the tree view but no element is visible in the 3D view, increase this value until it is visible.
- VistaArrow Size: specifies the size of the arrows indicating the three axes of the plane proxy.
- VistaRestore View: if it is
true
the camera position will be restored to the saved position when using the proxy with Draft SelectPlane or by double-clicking on it. - VistaRestore State: if it is
true
the visibility state of all objects will be restored to the saved state when using the proxy with Draft SelectPlane or by double-clicking on it.
Script
Gli oggetti piano di lavoro proxy possono essere creati facilmente in script e macro:
See also: Draft API and FreeCAD Scripting Basics.
Working plane proxy objects can be used in macros and from the Python console by using the following function:
WPProxy = makeWorkingPlaneProxy(placement)
- Creates a
WPProxy
object from the givenplacement
which is aFreeCAD.Placement
.- A placement is defined by a base point, given by its
FreeCAD.Vector
, and aFreeCAD.Rotation
.
- A placement is defined by a base point, given by its
The size of the Plane Proxy can be changed by overwriting its ViewObject.DisplaySize
and ViewObject.ArrowSize
attributes, with units in millimeters.
The Plane Proxy has a "Face" object as its Shape
attribute. This face can be used to set the current working plane by calling its alignToFace()
method.
Esempio:
import FreeCAD, FreeCADGui, Draft
currentWP = FreeCAD.DraftWorkingPlane
place = currentWP.getPlacement()
WPProxy = Draft.makeWorkingPlaneProxy(place)
WPProxy.ViewObject.DisplaySize = 3000
WPProxy.ViewObject.ArrowSize = 200
YAxis = FreeCAD.Vector(0, 1, 0)
point2 = FreeCAD.Vector(3000, 0, 0)
place2 = FreeCAD.Placement(point2, FreeCAD.Rotation(YAxis, 90))
WPProxy2 = Draft.makeWorkingPlaneProxy(place2)
WPProxy2.ViewObject.DisplaySize = 3000
WPProxy2.ViewObject.ArrowSize = 200
Axis = FreeCAD.Vector(1, 1, 1)
point3 = FreeCAD.Vector(-3000, 3000, 0)
place3 = FreeCAD.Placement(point3, FreeCAD.Rotation(Axis, 90))
WPProxy3 = Draft.makeWorkingPlaneProxy(place3)
WPProxy3.ViewObject.DisplaySize = 3000
WPProxy3.ViewObject.ArrowSize = 200
FreeCAD.ActiveDocument.recompute()
currentWP.alignToFace(WPProxy3.Shape)
FreeCADGui.Snapper.setGrid()
- 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, Assembly, BIM, 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