Macro Perpendicular To Wire

Description
This macro positions an object perpendicularly to the selected wire.

Usage

 * 1) Install the macro via the [[Image:Std_AddonMgr.svg|24px|link=Std_AddonMgr]] Addon Manager
 * 2) Select the path (may be an element or sub-element)
 * 3) Select the object to align
 * 4) Execute the macro

Script
The macro toolbar icon:

Macro Perpendicular To Wire.FCMacro

Options
Essentially the line is cut in x points with (for our purposes we default to  but cuts may be modfied between  0 to 499)

1. The perpendicularity is calculated between 2 points:


 * [[File:Macro Perpendicular To Wire 01.png]]

2:


 * [[File:Macro Perpendicular To Wire 02.png]]

3:


 * [[File:Macro Perpendicular To Wire 03.png]]

4:


 * [[File:Macro Perpendicular To Wire 04.png]]

Other parameters to are as follows:

Example




Discussions

 * [Spiralbohrer] discussion on the FC forum.
 * http://forum.freecadweb.org/viewtopic.php?f=12&t=16336#p129468

Version
Ver 00.03 2020-03-21: Source and comment typo fixes Ver 00.02 2019-04-06: Python 3