Modeling
About Archicad's design tools, element connections, modeling concepts, etc.

Window Marker Unit Notation

Anonymous
Not applicable
HI'm using the "Builder Dimension" Window marker for simple window size notation, but it doesn't displaay feet or inches; it will disaply 2-6x4 rather than 2'-6"x4', is there a way to change this option, I can't find it anywhere in the options, and my GDL knowledge isn't there enough to code this (without help anyway) does anyone have any ideas?

cheers,
Daniel
3 REPLIES 3
Anonymous
Not applicable
If I edit the GDL I imagine I would have to add a concatenation statement to add the appropriate ' & " to the string somewhere in here:

if gs_working_unit=`Inch` then
szov=str("%.32 ffi",AC_WIDO_A_SIZE)
inc=strlen (szov)
szovv=strsub (szov,1,inc-1)
fee=strstr (szovv,"'")
szo1=strsub(szovv,1,fee-1)
szo2=strsub(szovv,fee+1,inc-1)
szoveg1=szo1+szo2

szov=str("%.32 ffi",AC_WIDO_B_SIZE)
inc=strlen (szov)
szovv=strsub (szov,1,inc-1)
fee=strstr (szovv,"'")
szo1=strsub(szovv,1,fee-1)
szo2=strsub(szovv,fee+1,inc-1)
szoveg2=szo1+szo2

szoveg=szoveg1+GS_Separator+szoveg2
endif
but I'm not sure exactly where... probably near the bottom, like possibly szoveg1=szo1 + """ + szo2 +"'"

but I'm probably wrong, any insight? <<== EDIT: I AM Wrong. I tried that and it didn't work.

cheers,
Dan
Anonymous
Not applicable
That's a strange bit of code there.

They are going to some lengths to remove the foot and inch marks. The svov in the second line will have the marks in it as defined by the ffi format string. All that strstr and strsub stuff is designed to get rid of the marks.

To get what you want this simply change the last line before the endif to svoveg = svov.

Or if you really want to clean it up just replace it all with:
if gs_working_unit=`Inch` then szoveg=str("%.32 ffi",AC_WIDO_A_SIZE)
Remember to always work on a copy. Do not modify existing parts unless you are really sure of what you are doing.
Anonymous
Not applicable
Thanks for the tip Matthew, after reading what you posted I realised what was going on with the code, I removed the entire If Then Statement and changed it to:

if gs_working_unit=`Inch` then
szov1=str("%.32 ffi",AC_WIDO_A_SIZE)
szov2=str("%.32 ffi",AC_WIDO_B_SIZE)

szoveg=szov1+GS_Separator+szov2
endif
Thanks for all the help...
Daniel