cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Design forum

LABELS

Anonymous
Not applicable
ARE CUSTOM LABELS ABLE TO BE MABE STOREY SENSITIVE
9 REPLIES 9

Aussie John
Newcomer
Yes. Use GLOB_CH_STORY_DIST
eg if GLOB_CH_STORY_DIST>=1 then end
will not show the label if the storey is above the home storey.
Cheers John
John Hyland : ARINA : www.arina.biz
User ver 4 to 12 - Jumped to v22 - so many options and settings!!!
OSX 10.15.6 [Catalina] : Archicad 22 : 15" MacBook Pro 2019
[/size]

Anonymous
Not applicable
John
i have written a label that coverts a the height of o slab into brick coursing
& ffl measurements with the addition of a datum height

out method of drawing is that the slab is 1 storey below the storey where the brickwork sits & were the working drawing is completed

i dont seem to about to display the label on anything but its home story

i tried scripts such IF GLOB_CH_STORY_DIST=1 THEN GOSUB but could not manage to show the label on storey 1

i seemed to be able to trick into not showing anything at all by using
IF GLOB_CH_STORY_DIST<=1

Aussie John
Newcomer
is the slab only showing on the one storey? The label will only associate itself with a visible element
Cheers John
John Hyland : ARINA : www.arina.biz
User ver 4 to 12 - Jumped to v22 - so many options and settings!!!
OSX 10.15.6 [Catalina] : Archicad 22 : 15" MacBook Pro 2019
[/size]

Anonymous
Not applicable
in gerneral we will show the concrete slab on the storey above

hope were on the right wave length ive written the gdl part & loaded it
as a label. ive written many parts, like stairs were ive use the storey up storey down the manipulate the visual in the 2d script

im not sure if loading the part as a label is overriding these commands

Aussie John
Newcomer
damien wrote:
in gerneral we will show the concrete slab on the storey above
It should work if the slab is visible
Cheers John
John Hyland : ARINA : www.arina.biz
User ver 4 to 12 - Jumped to v22 - so many options and settings!!!
OSX 10.15.6 [Catalina] : Archicad 22 : 15" MacBook Pro 2019
[/size]

Anonymous
Not applicable
john

this is the script that i used the label works fine in its calculation but
remains fixed on the home story



IF GLOB_CH_STORY_DIST <=3 THEN GOSUB 10
END

10:
IF glob_context=1 THEN
label_font_name="Arial"
label_text_size=2.5
label_font_style=0
label_text_pen=3
anch=1
ENDIF

DEFINE STYLE "textstyle" label_font_name,
label_text_size, anch, label_font_style
SET STYLE "textstyle"


height=J_


brkht=(600/7)*.001
Course=height/brkht
Brk=INT (Course+0.5)

h=INPUT_HT+ffl

DEFINE STYLE 'TXT' 'ARIAL NARROW WESTERN',2.5,4,0
SET STYLE 'TXT'

h=STR((height+ffl),5,3)
Brkh = str(brk,5,0)
stringLength=stw( " FFL" +Brkh +'c ' +'( ' +h +' ) ')/1000*A_

add2 0,0.25/2
add2 -stringLength/2,0
TEXT2 0.1,0, "FFL"+Brkh +'c ' +'( ' +h +' )'
PEN 15
del 1
RECT2 -stringLength/2,-0.3,stringLength/2,0.3

HOTSPOT2 -stringLength/2,-0.3
HOTSPOT2 -stringLength/2,0.3
HOTSPOT2 stringLength/2,-0.3
HOTSPOT2 stringLength/2,0.3


RETURN

Aussie John
Newcomer
Damien - I dont know - the script works ok for me.

Label shows on every storey (along with the slab) below the 4th storey above the home

EDIT I just noticed you are on v9 - from memory labels only show on the Home storey in v9
Cheers John
John Hyland : ARINA : www.arina.biz
User ver 4 to 12 - Jumped to v22 - so many options and settings!!!
OSX 10.15.6 [Catalina] : Archicad 22 : 15" MacBook Pro 2019
[/size]

Anonymous
Not applicable
thanks john
better start pushing for an upgrade

Aussie John
Newcomer
damien wrote:
thanks john
better start pushing for an upgrade
Yep v10 does have its gremlins but is a solid update
Cheers John
John Hyland : ARINA : www.arina.biz
User ver 4 to 12 - Jumped to v22 - so many options and settings!!!
OSX 10.15.6 [Catalina] : Archicad 22 : 15" MacBook Pro 2019
[/size]

Didn't find the answer? Start a new discussion

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!