cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

A "Smart" roof label

I've searched this forum and can't find anything.

I want to make/get a label object that can be used in the following manner:

Click on a roof then click on the desired location for the label. The label needs to display the rise and run of the 'clicked on' roof.

Is this possible? and How?
82 Replies 82
Anonymous
Not applicable
Dan,
I downloaded your Roofslope_accessory.gsm and tried it out.
A couple of things.
If the roof pivot line is set at some arbitrary angle
your object rotates to that angle, as it should.
There is nothing in your script that I can see that
directs the arrow and text to rotate to the angle of the pivot line.
How does the object know this angle ?
I did notice that if one gives the roof pitch a negative value
or if you draw the roof with the pivot line at the ridge rather
than at the eave, the arrow does not change direction.
It still points down even though the the direction of the slope
is reversed. This is why I asked about which accessory parameter
defines direction. There are actually two "directions" if you will.
One is the angle of the pivot line relative to an orthogonal coordinate
system.
Two is the direction of slope up, down, relative to the roofs own
pivot line. The two "directions" can be combined to define a vector.
Thanks,
Peter Devlin
Anonymous
Not applicable
Dan,
I just fixed the issue with the direction of the arrow
when the pitch is negative.
Just before the line2 commands for drawing the arrow
insert :

if AC_pitch<0 then mul2 -1,1 !!!corrects direction for negative pitch

What is interesting is that if the roof pivot line is placed at the ridge
the roof pitch is made negative so the arrow points correctly
in both situations.
I am still mystified about how/why the symbol rotates to the roof pivot angle
It must be something fundamental in the roof accessory add-on.
Peter Devlin
Anonymous
Not applicable
Peter wrote:
Dan,
I just fixed the issue with the direction of the arrow
when the pitch is negative.
Just before the line2 commands for drawing the arrow
insert :

if AC_pitch<0 then mul2 -1,1 !!!corrects direction for negative pitch
...
Peter,
Thanks, that works great.
Dan K
Chazz
Enthusiast
Dan wrote:
Anyway, I fixed it with a graphical hotspot. When you move it it stays put now...before I did this, it would always jump back to its original origin.
Dan,

Thank you so much for noodlling this accessory and posting it! I know that beggars should never be choosers (and in the realm of GDL, I'm definitely a beggar) but one issue I notice is that if you manually move the arrow it reverts to its original position when the object's settings are opened (even if not changed). Otherwise I'm loving it. Thanks again.
Nattering nabob of negativism
2023 MBP M2 Max 32GM. MaxOS-Current
Anonymous
Not applicable
Chazz wrote:
Dan wrote:
Anyway, I fixed it with a graphical hotspot. When you move it it stays put now...before I did this, it would always jump back to its original origin.
Dan,

Thank you so much for noodlling this accessory and posting it! I know that beggars should never be choosers (and in the realm of GDL, I'm definitely a beggar) but one issue I notice is that if you manually move the arrow it reverts to its original position when the object's settings are opened (even if not changed). Otherwise I'm loving it. Thanks again.
Chazz,
You're very welcome...
Thats why I scripted in the graphical hotspot...If you move the symbol properly with the graphical hotspot, it will stay put. (Is it clear what I mean by this???) Don't move it by selecting one of the end hotspots or it will jump around when the roof settings change.

Chazz please let me know if this solves the problem you are experiencing

Dan K
Chazz
Enthusiast
Dan wrote:
If you move the symbol properly with the graphical hotspot, it will stay put. (Is it clear what I mean by this???) Don't move it by selecting one of the end hotspots or it will jump around when the roof settings change.
Yeah OK. Understood. It works great now. Thanks again so much!
Nattering nabob of negativism
2023 MBP M2 Max 32GM. MaxOS-Current
Anonymous
Not applicable
For anyone interested I'm posting an updated/enhanced version of this roof accessory. Basically it fixes an arrow direcion problem thanks to a suggestion by Peter Devlin. It also allows you to display the slope in feet and inches.

A more informative screenshot will follow this post

Dan K
Anonymous
Not applicable
Dan wrote:
A more informative screenshot will follow this post
Dan K
Here's the screenshot
RoofSlopeInfo.jpg
Rakela Raul
Participant
thanku dan,
im looking x gas to run my generator, but still i wont miss
this goody.
i envy who doesnt have hurricane/tornados, and quakes
MACBKPro /32GiG / 240SSD
AC V6 to V18 - RVT V11 to V16
Dan,

This looks like a great tool, but it isn't picking up the slope for me. Any idea what might be wrong? (It inserts as a 0:12 slope) Roofs are unlocked and displayed.
Richard
--------------------------
Richard Morrison, Architect-Interior Designer
AC26 (since AC6.0), Win10

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!