Jump to content

Macro Normal Vector

From FreeCAD Documentation

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
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[edit | edit source]

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

Usage[edit | edit source]

  • 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[edit | edit source]

ToolBar Icon

Macro_Normal_Vector.FCMacro

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

Link[edit | edit source]

Link to dicussion thread (german)