SlopedPlanesMacro

Show off your FreeCAD projects here!
damian
Posts: 583
Joined: Sun May 31, 2015 6:16 pm

Re: SlopedPlanesMacro

Postby damian » Thu Apr 05, 2018 6:35 pm

Hi:
I'm doing a few videos for demonstration. I'm using the development version and these are not the definitive documentation, a trial.
Later on.
Thank
damian
Posts: 583
Joined: Sun May 31, 2015 6:16 pm

Re: SlopedPlanesMacro

Postby damian » Thu Apr 05, 2018 7:12 pm

The first video (less than a minute) explains the slope control

phpBB [video]


Edit: uhmm!!! It needs improvements !!! I don't see anything

Well. With full screen and HD is good!
damian
Posts: 583
Joined: Sun May 31, 2015 6:16 pm

Re: SlopedPlanesMacro

Postby damian » Thu Apr 05, 2018 8:09 pm

The second video (approx a minute) is about the FactorWidth and FactorLength controls.

Please, remember to see it with FullScreen and HD.

phpBB [video]
damian
Posts: 583
Joined: Sun May 31, 2015 6:16 pm

Re: SlopedPlanesMacro

Postby damian » Thu Apr 05, 2018 8:23 pm

The third video (thirty seconds) deals with the Task Panel, where is possible to assign different angles to the faces.
As you can see there is an observer. In this way, when a face is selected the related item in the Task Panel is selected.
phpBB [video]

Today this is all
Good night
User avatar
markko martin
Posts: 27
Joined: Tue Aug 09, 2016 5:51 pm
Location: Italy

Re: SlopedPlanesMacro

Postby markko martin » Sat Apr 07, 2018 1:12 pm

Thank you Damian for your work.

In future it will be possible to insert % slope instead angle?
Loris
damian
Posts: 583
Joined: Sun May 31, 2015 6:16 pm

Re: SlopedPlanesMacro

Postby damian » Sat Apr 07, 2018 2:55 pm

markko martin wrote:
Sat Apr 07, 2018 1:12 pm
Thank you Damian for your work.
Thank you for use it.
markko martin wrote:
Sat Apr 07, 2018 1:12 pm
In future it will be possible to insert % slope instead angle?
Excellent idea!!!

Considering that:
1º) There are more people which need this unit (two fora above)
2º) ATM the pull request is closed due to the FreeCAD 0.17 release
I think that the best option is to solve it in FreeCAD 0.18.

I understand that:
1º) It will be necessary a new angles unit, percent, where 45º is equivalent to 100 %?
2º) We need to do a new units schema available in preferences, topography schema, with km and %?
I haven't got previous experience with this side of FreeCAD.
If someone with more experience has got a better approach, he could make it faster and cleaner.
See you
User avatar
markko martin
Posts: 27
Joined: Tue Aug 09, 2016 5:51 pm
Location: Italy

Re: SlopedPlanesMacro

Postby markko martin » Sat Apr 07, 2018 5:19 pm

In my opinion you might use this expression:

Angle= arctan (slope)

So I can write slope and freecad automatically calculate the angle.

Will it work?
Loris
damian
Posts: 583
Joined: Sun May 31, 2015 6:16 pm

Re: SlopedPlanesMacro

Postby damian » Sat Apr 07, 2018 5:56 pm

I'm thinking in
angle(%) = angle(degree) x 100/45
damian
Posts: 583
Joined: Sun May 31, 2015 6:16 pm

Re: SlopedPlanesMacro

Postby damian » Sat Apr 07, 2018 6:01 pm

and it must go through the FreeCAD unit system. Later I could apply it to the macro ...

EDIT:
https://www.freecadweb.org/wiki/Units
https://www.freecadweb.org/wiki/Quantity
User avatar
markko martin
Posts: 27
Joined: Tue Aug 09, 2016 5:51 pm
Location: Italy

Re: SlopedPlanesMacro

Postby markko martin » Sat Apr 07, 2018 8:54 pm

damian wrote:
Sat Apr 07, 2018 5:56 pm
I'm thinking in
angle(%) = angle(degree) x 100/45
This expression is true only for 45 or 90 degrees.

The correct expression is :

slope= tan angle (degree)

For example :

Slope 30% = 30/100 = 0,3

0,3 = tan ( 16,699)
https://en.m.wikipedia.org/wiki/Slope

Angle (degree) = Tan ^ -1 ( slope )

16,699 = Tan ^ -1 ( 0,3)
Loris