Macro Normal Vector

From FreeCAD Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Other languages:

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

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.FCMacro

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

Link

Link to dicussion thread (german)