Macro Align Working Plane to Camera/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "==Użycie== * Przesuń widok do miejsca, na które chcesz spojrzeć * Uruchom makrodefinicję")
(Created page with "==Opis= To makro przesuwa bieżącą Plaszczyzne roboczą na środek bieżącego widoku. Jest to przydatne, gdy pracujesz daleko od środka siatki.")
Line 13: Line 13:
}}
}}


==Opis=
==Description==
To makro przesuwa bieżącą [[Draft_SelectPlane/pl|Plaszczyzne roboczą]] na środek bieżącego widoku. Jest to przydatne, gdy pracujesz daleko od środka siatki.
This macro moves the current [[Draft SelectPlane|Draft Working Plane]] to the center of the current view. It is useful when you are working quite far from the grid center.


==Użycie==
==Użycie==

Revision as of 14:31, 11 September 2021

Other languages:

Macro Align Working Plane to Camera

Description
This macro moves the current Draft Working Plane to the center of the current view

Macro version: 1.0
Last modified: 2017-05-10
FreeCAD version: All
Download: ToolBar Icon
Author: yorik
Author
yorik
Download
ToolBar Icon
Links
Macro Version
1.0
Date last modified
2017-05-10
FreeCAD Version(s)
All
Default shortcut
None
See also
Makrodefinicja: Wyrównaj ujęcie widoku do płaszczyzny roboczej Macro Align Camera to Working Plane

=Opis

To makro przesuwa bieżącą Plaszczyzne roboczą na środek bieżącego widoku. Jest to przydatne, gdy pracujesz daleko od środka siatki.

Użycie

  • Przesuń widok do miejsca, na które chcesz spojrzeć
  • Uruchom makrodefinicję

Skrypt

ToolBar Icon

Macro_Align_Working_Plane_to_Camera.FCMacro

import FreeCAD,FreeCADGui
cam = FreeCAD.Vector(FreeCADGui.ActiveDocument.ActiveView.getCameraNode().position.getValue().getValue())
pos = FreeCAD.DraftWorkingPlane.projectPoint(cam)
FreeCAD.DraftWorkingPlane.position = pos
FreeCADGui.Snapper.setGrid()