ā2023-09-07
01:36 PM
- last edited on
ā2024-09-26
01:50 PM
by
Doreena Deng
Hello,
I have a pyramid object using the pyramid command, but I would like to show the angle of each face in the floor plan. Is there a way to obtain and display that kind of information?
Juan
Solved! Go to Solution.
ā2023-09-07 03:01 PM
The reference manual says:
Pyramid based on a polyline in the x-y plane. The peak of the pyramid is located at (0, 0, h).
So you know your coordinates. And you know "h", since you defined it....
Now all you need is the distance of the line to p{0,0} and a bit of simplest trigonometry. Should be straightforward.
ā2023-09-08 03:38 AM - edited ā2023-09-08 03:46 AM
Īø = atn( h / a )
Īøa = atn( abs( ze - za ) / ( xe - xa ) )
| AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
ā2023-09-07 02:28 PM - edited ā2023-09-07 02:53 PM
Please illustrate your ideas and requirements with a diagram š
ā2023-09-07 03:01 PM
The reference manual says:
Pyramid based on a polyline in the x-y plane. The peak of the pyramid is located at (0, 0, h).
So you know your coordinates. And you know "h", since you defined it....
Now all you need is the distance of the line to p{0,0} and a bit of simplest trigonometry. Should be straightforward.
ā2023-09-08 03:38 AM - edited ā2023-09-08 03:46 AM
Īø = atn( h / a )
Īøa = atn( abs( ze - za ) / ( xe - xa ) )
| AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
ā2023-09-13 08:31 AM
Thank you all, I agree it should be pretty straight forward. I think my main issue is (as far as I know) there is no console to print values, just like in python to corroborate the values.
ā2023-09-13 09:10 AM
Just use the PRINT command.
If in the 2D script , view the 2D preview and you will get a message.
Same in the 3D script, view the 3D preview.
You may need to set your Work Environment to interrupt with error messages if that is turned off.
Barry.
ā2023-09-13 09:38 AM - edited ā2023-09-13 09:39 AM
If you are just wanting it to display on the floorplan, just use a text2 with the result of the above trig?
| AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
ā2023-09-13 11:31 AM
That did the trick, sometimes I tkae the most complicated route š