Macro Normal Vector

From FreeCAD Documentation
Jump to navigation Jump to search
Other languages:
English • ‎français • ‎italiano

Macro Normal Vector.png Normal Vector Macro

Description
Get normal vector of preselected face

Macro version: 1.0
Last modified: 2016-09-26
FreeCAD version: All
Download: ToolBar Icon
Author
ulrich1a
Download
ToolBar Icon
Links
Macro Version
1.0
Date last modified
2016-09-26
FreeCAD Version(s)
All
Default shortcut
None
See also
None


Description

Simple macro to extract normal vector of previously within the 3D-View chosen face and give the output to the python console

Usage

  • Choose Face in 3D View.
  • Copy Macro code to python console.
  • FreeCAD will then display normal vector information in python console.
  • Use these values for setting up direction when creating a drawing view.

Script

ToolBar Icon Macro Normal Vector.png

Macro_Normal_Vector.FCMacro

Gui.Selection.getSelectionEx()[0].SubObjects[0].Faces[0].normalAt(0,0)

Link

Link to dicussion thread (german)