Draft WorkingPlaneProxy/de: Difference between revisions

From FreeCAD Documentation
(Created page with "{{Docnav/de |AutoGroup |Add to Construction group |Draft |IconL=Draft_AutoGroup.svg |IconC=Workbench_Draft.svg |...")
(Created page with "* {{PropertyData/de|Placement|Placement}}: Legt die Position der Arbeitsebene in der 3D-Ansicht fest. Siehe Positionierung. * {{PropertyData/de|Shape|Shape|Hidden}}: Legt die Form des Arbeitsebenen-Proxys fest.")
 
(63 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav/de
{{Docnav/de
|[[Draft_ToggleDisplayMode/de|AnzeigemodusUmschalten]]
|[[Draft AutoGroup|AutoGroup]]
|[[Draft_ApplyStyle/de|StilAnwenden]]
|[[Draft_AddConstruction|Add to Construction group]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench/de|Draft]]
|IconL=Draft_AutoGroup.svg
|IconL=Draft_ToggleDisplayMode.svg
|IconR=Draft_ApplyStyle.svg
|IconC=Workbench_Draft.svg
|IconC=Workbench_Draft.svg
|IconR=Draft_AddConstruction.png
}}
}}


{{GuiCommand
{{GuiCommand/de
|Name=Draft SetWorkingPlaneProxy
|Name=Draft WorkingPlaneProxy
|Name/de=Draft ArbeitsebenenProxy
|MenuLocation=Draft → Utilities → Create WP Proxy
|MenuLocation= Dienstprogramme → Arbeitsebenen-Proxy erstellen
|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]
|Workbenches=[[Draft_Workbench/de|Draft]], [[Arch_Workbench/de|Arch]]
|SeeAlso=[[Draft SelectPlane]]
|SeeAlso=[[Draft_SelectPlane/de|Draft EbeneAuswählen]]
}}
}}


<span id="Description"></span>
==Beschreibung====
==Beschreibung==
Dieser Befehl platziert ein Ebenen Proxy Objekt, das auf die aktuelle [[Draft SelectPlane/de|Arbeitsebene]] ausgerichtet ist.


Dieses Proxy Objekt kann wie eine Fläche verwendet werden, um mit dem [[Draft SelectPlane/de]] Werkzeug die Bearbeitungsebene schnell zu wechseln. Die Kameraposition und Sichtbarkeit der Objekte in der 3D Ansicht kann im Proxy Objekt gespeichert und bei Verwendung des Werkzeugs [[Draft SelectPlane/de]] jederzeit wiederhergestellt werden.
Der Befehl [[Image:Draft_WorkingPlaneProxy.svg|24px]] '''Draft ArbeitsebenenProxy''' erstellt einen Stellvertreter der Arbeitsebene, um die aktuelle [[Draft_SelectPlane/de|Draft Arbeitsebene]] zu sichern. Ein Arbeitsebenen-Proxy kann zum schnellen wiederherstellen einer Arbeitsebene verwendet werden. Kameraposition und Sichtbarkeit der Objekte in der [[3D_view/de|3D-Ansicht]] werden auch im Arbeitsebenen-Proxy gespeichert und können, [[#Eigenschaften|wahlweise]], auch wiederhergestellt werden.


[[Image:Draft WPProxy example.png|400px]]
[[Image:Draft WPProxy example.png|400px]]
{{Caption|Drei Proxies der Bearbeitungsebene mit unterschiedlichen Ausrichtungen und Versätzen}}
{{Caption|Drei Proxies der Bearbeitungsebene mit unterschiedlichen Ausrichtungen und Versätzen}}


<span id="Usage"></span>
==Anwendung==
==Anwendung==
# Stelle sicher, dass die [[Draft SelectPlane|Arbeitsebene]] so eingestellt ist, wie Du willst.
# Dann gehe zum Menü {{MenuCommand/de|Draft → Utilities → [[Image:Draft SetWorkingPlaneProxy.png|16px]] [[Draft SetWorkingPlaneProxy|Arbeitsebenen Proxy erstellen]]}}.


# Wahlweise die [[Draft_SelectPlane/de|Arbeitsebene]] wechseln.
==Notes==
# Wahlweise die [[3D_view/de|3D-Ansicht]] wechseln.
* 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 {{Button|[[Image:Draft SelectPlane.svg|16px]] [[Draft SelectPlane]]}} button.
# Wahlweise die Sichtbarkeit von Objekten im Dokument ändern.
* 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 {{Button|[[Image:Draft SelectPlane.svg|16px]] Write camera position}}.
# Es gibt mehrere Möglichkeiten, den Befehl aufzurufen:
* The visibility state of all objects is also stored in the Proxy object upon creation. This state can be updated anytime: set the {{PropertyView|Visibility}} property of the objects to {{TRUE}} or {{FALSE}} as desired, then right-click the Proxy object in the tree view, and select {{Button|[[Image:Draft SelectPlane.svg|16px]] Write objects state}}.
#* Die Schaltfläche {{Button|[[Image:Draft_WorkingPlaneProxy.svg|16px]] [[Draft_WorkingPlaneProxy/de|Arbeitsebenen-Proxy erstellen]]}} drücken.
* 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]].
#* Den Menüeintrag {{MenuCommand|Dienstprogramme → [[Image:Draft_WorkingPlaneProxy.svg|16px]] Arbeitsebenen-Proxy erstellen}} auswählen.
# Ein Arbeitsebenen-Proxy wird erstellt.
# Zum Ausrichten einer [[Draft_SelectPlane/de|Arbeitsebene]] an einem Arbeitsebenen-Proxy klickt man doppelt auf den Arbeitsebenen-Proxy in der [[Tree_view/de|Baumansicht]] oder verwendet ihn mit dem Befehl [[Draft_SelectPlane/de|Draft EbeneAuswählen]].


<span id="Context_menu"></span>
==Kontextmenü==

Für ein Draft Arbeitsebenen-Proxy sind diese zusätzlichen Optionen im Kontextmenü der [[Tree_view/de|Baumansicht]] vorhanden:

* {{MenuCommand|[[Image:Draft_SelectPlane.svg|16px]] Write camera position}}: aktualisiert die {{PropertyView/de|View Data}} des Arbeitsebenen-Proxys mit den aktuellen Kameraeinstellungen der [[3D_view/de|3D-Ansicht]].
* {{MenuCommand|[[Image:Draft_SelectPlane.svg|16px]] Write objects state}}: aktualisiert die {{PropertyView/de|Visibility Map}} des Arbeitsebenen-Proxys mit den aktuellen Sichtbarkeiten der Objekte im Dokument.

<span id="Notes"></span>
==Hinweise==

* Arbeitsebenen-Proxies können [[Draft_Move/de|verschoben]] und [[Draft_Rotate/de|gedreht]] werden, wie jedes andere Objekt auch. Mit aktiviertem [[Image:Draft_Snap_Center.svg|16px]] [[Draft_Snap_Center/de|Draft MittelpunktEinrasten]] wird auf dem Punkt seiner {{PropertyData/de|Placement}} eingerastet.

<span id="Properties"></span>
==Eigenschaften==
==Eigenschaften==


Siehe auch: [[Property_editor/de|Eigenschafteneditor]].
=== Data ===
* {{PropertyData|Placement}}: specifies the position of the proxy object and the corresponding working plane.
** {{PropertyData|Position}}: specifies the coordinates of the proxy object.
** {{PropertyData|Angle}}: specifies the rotation angle of the proxy object.
** {{PropertyData|Axis}}: specifies the axis to use for the rotation angle.


Ein Draft ArbeitsebenenProxy wird von einem [[App_FeaturePython|App FeaturePython]]-Objekt abgeleitet und erbt alle seine Eigenschaften. Außerdem besitzt es die folgenden zusätzlichen Eigenschaften:
=== View ===
* {{PropertyView|Display 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.
* {{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 to the saved position when using the proxy with {{Button|[[Image:Draft SelectPlane.svg|16px]] [[Draft SelectPlane]]}} or by double-clicking on it.
* {{PropertyView|Restore State}}: if it is {{TRUE}} the visibility state of all objects will be restored to the saved state when using the proxy with {{Button|[[Image:Draft SelectPlane.svg|16px]] [[Draft SelectPlane]]}} or by double-clicking on it.


<span id="Data"></span>
==Scripting==
===Daten===


{{TitleProperty|Basis}}
{{Emphasis|See also:}} [[Draft API]] and [[FreeCAD Scripting Basics]].


* {{PropertyData/de|Placement|Placement}}: Legt die Position der Arbeitsebene in der [[3D_view/de|3D-Ansicht]] fest. Siehe [[Placement/de|Positionierung]].
Working plane proxy objects can be used in [[macros]] and from the [[Python]] console by using the following function:
* {{PropertyData/de|Shape|Shape|Hidden}}: Legt die Form des Arbeitsebenen-Proxys fest.
{{Code|code=
WPProxy = makeWorkingPlaneProxy(placement)
}}
* Creates a {{incode|WPProxy}} object from the given {{incode|placement}} which is a {{incode|FreeCAD.Placement}}.
** A placement is defined by a base point, given by its {{incode|FreeCAD.Vector}}, and a {{incode|FreeCAD.Rotation}}.


<span id="View"></span>
The size of the Plane Proxy can be changed by overwriting its {{incode|ViewObject.DisplaySize}} and {{incode|ViewObject.ArrowSize}} attributes, with units in millimeters.
===Ansicht===


{{TitleProperty|Basis}}
The Plane Proxy has a "Face" object as its {{incode|Shape}} attribute. This face can be used to set the current working plane by calling its {{incode|alignToFace()}} method.

* {{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|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 the [[Draft_SelectPlane|working plane]] is aligned with the working plane proxy.
* {{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|Visibility Map|Map|Hidden}}: specifies the visibility state of objects.

{{TitleProperty|Draft}}

* {{PropertyView|Arrow Size|Length}}: specifies the size of the arrow symbols displayed at the tip of the three axes.
* {{PropertyView|Display Size|Length}}: specifies the length and width of the working plane proxy.

<span id="Scripting"></span>
==Skripten==

Siehe auch: [https://freecad.github.io/SourceDoc/ Autogenerierte API-Dokumentation] und [[FreeCAD_Scripting_Basics/de|FreeCAD Grundlagen Skripten]].

Zum Erstellen eines Draft Arbeitsebenen-Proxys verwendet man die Methode {{incode|make_workingplaneproxy}} des Draft-Moduls.

Ist der Arbeitsbereich [[Draft_Workbench/de|Draft]] aktiv, besitzt FreeCADs Anwendungsobjekt (application object) eine Eigenschaft {{incode|DraftWorkingPlane}}, die die aktuelle Arbeitsebene speichert. Die Positionierung {{Incode|Placement}} aus der Methode {{Incode|getPlacement}} des {{incode|DraftWorkingPlane}}-Objekts kann zur Erstellung eines ausgerichteten Arbeitsebenen-Proxys verwendet werden. Die Positionierung {{Incode|Placement}} kann wiederum zu erneuten Ausrichten der Arbeitsebene verwendet werden.


Example:
{{Code|code=
{{Code|code=
# This code only works if the Draft Workbench is active!
import FreeCAD, FreeCADGui, Draft


currentWP = FreeCAD.DraftWorkingPlane
import FreeCAD as App
import FreeCADGui as Gui
place = currentWP.getPlacement()
import Draft


doc = App.newDocument()
WPProxy = Draft.makeWorkingPlaneProxy(place)
WPProxy.ViewObject.DisplaySize = 3000
WPProxy.ViewObject.ArrowSize = 200


workplane = App.DraftWorkingPlane
YAxis = FreeCAD.Vector(0, 1, 0)
place = workplane.getPlacement()
point2 = FreeCAD.Vector(3000, 0, 0)
place2 = FreeCAD.Placement(point2, FreeCAD.Rotation(YAxis, 90))


WPProxy2 = Draft.makeWorkingPlaneProxy(place2)
proxy = Draft.make_workingplaneproxy(place)
WPProxy2.ViewObject.DisplaySize = 3000
proxy.ViewObject.DisplaySize = 3000
WPProxy2.ViewObject.ArrowSize = 200
proxy.ViewObject.ArrowSize = 200


Axis = FreeCAD.Vector(1, 1, 1)
axis2 = App.Vector(1, 1, 1)
point3 = FreeCAD.Vector(-3000, 3000, 0)
point2 = App.Vector(3000, 0, 0)
place3 = FreeCAD.Placement(point3, FreeCAD.Rotation(Axis, 90))
place2 = App.Placement(point2, App.Rotation(axis2, 90))


WPProxy3 = Draft.makeWorkingPlaneProxy(place3)
proxy2 = Draft.make_workingplaneproxy(place2)
WPProxy3.ViewObject.DisplaySize = 3000
proxy2.ViewObject.DisplaySize = 3000
WPProxy3.ViewObject.ArrowSize = 200
proxy2.ViewObject.ArrowSize = 200
FreeCAD.ActiveDocument.recompute()


workplane.setFromPlacement(proxy2.Placement, rebase=True)
currentWP.alignToFace(WPProxy3.Shape)
FreeCADGui.Snapper.setGrid()
Gui.Snapper.setGrid()

doc.recompute()
}}
}}



{{Docnav
{{Docnav/de
|[[Draft AutoGroup|AutoGroup]]
|[[Draft_ToggleDisplayMode/de|AnzeigemodusUmschalten]]
|[[Draft_AddConstruction|Add to Construction group]]
|[[Draft_ApplyStyle/de|StilAnwenden]]
|[[Draft_Module|Draft]]
|[[Draft_Workbench/de|Draft]]
|IconL=Draft_AutoGroup.svg
|IconL=Draft_ToggleDisplayMode.svg
|IconR=Draft_ApplyStyle.svg
|IconC=Workbench_Draft.svg
|IconC=Workbench_Draft.svg
|IconR=Draft_AddConstruction.png
}}
}}


{{Draft Tools navi}}
{{Draft Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

{{Userdocnavi}}
{{clear}}

Latest revision as of 16:09, 31 December 2023

Draft ArbeitsebenenProxy

Menüeintrag
Dienstprogramme → Arbeitsebenen-Proxy erstellen
Arbeitsbereich
Draft, Arch
Standardtastenkürzel
Keiner
Eingeführt in Version
-
Siehe auch
Draft EbeneAuswählen

Beschreibung

Der Befehl Draft ArbeitsebenenProxy erstellt einen Stellvertreter der Arbeitsebene, um die aktuelle Draft Arbeitsebene zu sichern. Ein Arbeitsebenen-Proxy kann zum schnellen wiederherstellen einer Arbeitsebene verwendet werden. Kameraposition und Sichtbarkeit der Objekte in der 3D-Ansicht werden auch im Arbeitsebenen-Proxy gespeichert und können, wahlweise, auch wiederhergestellt werden.

Drei Proxies der Bearbeitungsebene mit unterschiedlichen Ausrichtungen und Versätzen

Anwendung

  1. Wahlweise die Arbeitsebene wechseln.
  2. Wahlweise die 3D-Ansicht wechseln.
  3. Wahlweise die Sichtbarkeit von Objekten im Dokument ändern.
  4. Es gibt mehrere Möglichkeiten, den Befehl aufzurufen:
  5. Ein Arbeitsebenen-Proxy wird erstellt.
  6. Zum Ausrichten einer Arbeitsebene an einem Arbeitsebenen-Proxy klickt man doppelt auf den Arbeitsebenen-Proxy in der Baumansicht oder verwendet ihn mit dem Befehl Draft EbeneAuswählen.

Kontextmenü

Für ein Draft Arbeitsebenen-Proxy sind diese zusätzlichen Optionen im Kontextmenü der Baumansicht vorhanden:

  • Write camera position: aktualisiert die Ansicht EigenschaftView Data des Arbeitsebenen-Proxys mit den aktuellen Kameraeinstellungen der 3D-Ansicht.
  • Write objects state: aktualisiert die Ansicht EigenschaftVisibility Map des Arbeitsebenen-Proxys mit den aktuellen Sichtbarkeiten der Objekte im Dokument.

Hinweise

Eigenschaften

Siehe auch: Eigenschafteneditor.

Ein Draft ArbeitsebenenProxy wird von einem App FeaturePython-Objekt abgeleitet und erbt alle seine Eigenschaften. Außerdem besitzt es die folgenden zusätzlichen Eigenschaften:

Daten

Basis

  • Daten-EigenschaftPlacement (Placement): Legt die Position der Arbeitsebene in der 3D-Ansicht fest. Siehe Positionierung.
  • Daten-Eigenschaft (versteckt)Shape (Shape): Legt die Form des Arbeitsebenen-Proxys fest.

Ansicht

Basis

  • AnsichtLine Color (Color): specifies the color of all elements of the working plane proxy.
  • AnsichtLine Width (Float): specifies the line width of the axes and arrow symbols.
  • AnsichtRestore State (Bool): specifies if the AnsichtVisibility Map is restored when the working plane is aligned with the working plane proxy.
  • AnsichtRestore View (Bool): specifies if the AnsichtView Data is restored when the working plane is aligned with the working plane proxy.
  • AnsichtTransparency (Percent): specifies the transparency of the face of the working plane proxy.
  • AnsichtView Data (FloatList): specifies the camera position and settings.
  • Ansicht (Hidden)Visibility Map (Map): specifies the visibility state of objects.

Draft

  • AnsichtArrow Size (Length): specifies the size of the arrow symbols displayed at the tip of the three axes.
  • AnsichtDisplay Size (Length): specifies the length and width of the working plane proxy.

Skripten

Siehe auch: Autogenerierte API-Dokumentation und FreeCAD Grundlagen Skripten.

Zum Erstellen eines Draft Arbeitsebenen-Proxys verwendet man die Methode make_workingplaneproxy des Draft-Moduls.

Ist der Arbeitsbereich Draft aktiv, besitzt FreeCADs Anwendungsobjekt (application object) eine Eigenschaft DraftWorkingPlane, die die aktuelle Arbeitsebene speichert. Die Positionierung Placement aus der Methode getPlacement des DraftWorkingPlane-Objekts kann zur Erstellung eines ausgerichteten Arbeitsebenen-Proxys verwendet werden. Die Positionierung Placement kann wiederum zu erneuten Ausrichten der Arbeitsebene verwendet werden.

# 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()