SlopedPlanesMacro

Show off your FreeCAD projects here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
damian
Posts: 583
Joined: Sun May 31, 2015 6:16 pm

Re: SlopedPlanesMacro

Post by damian »

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

Post by damian »

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

Post by damian »

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

Post by damian »

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: 64
Joined: Tue Aug 09, 2016 5:51 pm
Location: Italy

Re: SlopedPlanesMacro

Post by markko martin »

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

Post by damian »

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: 64
Joined: Tue Aug 09, 2016 5:51 pm
Location: Italy

Re: SlopedPlanesMacro

Post by markko martin »

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

Post by damian »

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

Re: SlopedPlanesMacro

Post by damian »

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: 64
Joined: Tue Aug 09, 2016 5:51 pm
Location: Italy

Re: SlopedPlanesMacro

Post by markko martin »

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
Post Reply