## draft working plane, normal to a straight edge

A forum dedicated to the Draft, Arch and BIM workbenches development.
bernd
Posts: 8019
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

### draft working plane, normal to a straight edge

Is there smart way to get the working plane normal to a straight edge with FreeCAD Gui?
microelly2
Posts: 4319
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

### Re: draft working plane, normal to a straight edge

Marios Workfeature macro
yorik
Posts: 11371
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

### Re: draft working plane, normal to a straight edge

That would be an interesting feature to add... But there are 360° possibilities around the axis... We need a way to define the X direction too
bernd
Posts: 8019
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

### Re: draft working plane, normal to a straight edge

yorik wrote:
Wed Jul 17, 2019 1:48 pm
But there are 360° possibilities around the axis... We need a way to define the X direction too
I missed that one ... since I needed just the plane in my case ...
bernd
Posts: 8019
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

### Re: draft working plane, normal to a straight edge

I needed it to make a circle which normal to an edge. I used Python to create the circle. But anyway I must admit it would be cool to set this.
yorik
Posts: 11371
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

### Re: draft working plane, normal to a straight edge

What we could do it simply rotate the current WP so the current axis direction becomes the edge direction (we still need to define which direction, as a linear edge can have two). The rotation around the edge will be rather uncontrollable, though...
microelly2
Posts: 4319
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

### Re: draft working plane, normal to a straight edge

I would prefer the normal and binormal vector to define the coordinate system for the plane.
I work with this direction tangent/normal or tangent/binormal here

for the case here a 3rd combination normal/binormal is required
this are only some extra lines of code for another selection
https://en.wikipedia.org/wiki/Frenet%E2 ... t_formulas
yorik
Posts: 11371
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

### Re: draft working plane, normal to a straight edge

So the thing would be for ex. to select two edges, or an edge and a point... But then, the user could want to place the plane coplanar to it, not perpendicular...

I think this begins to bee too many options for the working plane tool. Maybe a better path would be indeed to integrate the workplane WB tools better in it?
mario52
Posts: 2602
Joined: Wed May 16, 2012 2:13 pm

### Re: draft working plane, normal to a straight edge

hi

is it this ? (not perfect if the object angle change)
FCPlane02.gif (1011.21 KiB) Viewed 87 times

thanks but Marios Rentlau Workfeature macro

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Dialog creation. My macros on Gist.github.