Macro Normal Vector
| 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 | 
| Macros recipes How to install macros How to customize toolbars | 
| 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
Macro_Normal_Vector.FCMacro
Gui.Selection.getSelectionEx()[0].SubObjects[0].Faces[0].normalAt(0,0)
Link
Link to dicussion thread (german)

