We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Set part length to less than a certain length

Anonymous
Not applicable
I have taken the joist tool from Archicad 8.1 and have saved it as a beam tool. I set up a beam size parameter and created a set of IF Then statements. I am able to set width and height. I want to add a length limit for each beam size i.e. a<=21'-0", as soon as I add the less than character the script fails. See below. Thanks.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!Beam Sizes!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

values 'beam_size' '4x6','4x8','6x6','6x8','6x10','6x12','8x8','Custom'

IF beam_size='4x6' THEN
parameters b=3.5",zzyzx=5.5",a<=21'-0"
ENDIF
IF beam_size='4x8' THEN
parameters b=3.5",zzyzx=7.25"
ENDIF
IF beam_size='6x6' THEN
parameters b=5.5",zzyzx=5.5"
ENDIF
IF beam_size='6x8' THEN
parameters b=5.5",zzyzx=7.25"
ENDIF
IF beam_size='6x10' THEN
parameters b=5.5",zzyzx=9.25"
ENDIF
IF beam_size='6x12' THEN
parameters b=5.5",zzyzx=11.25"
ENDIF
IF beam_size='8x8' THEN
parameters b=7.25",zzyzx=7.25"
ENDIF

Barry Halloran
3 REPLIES 3
PARAMETERS will allow you to set a value. One way to do what I think you are after would be, for example

IF beam_size='4x6' THEN
PARAMETERS b=3.5",zzyzx=5.5"
IF a>21'-0" THEN PARAMETERS a=21'-0"
ENDIF
Anonymous
Not applicable
Ignacio,

Thanks for the info, I'll give it a try.

Barry
Anonymous
Not applicable
Barry wrote:
...I want to add a length limit for each beam size i.e. a<=21'-0", as soon as I add the less than character the script fails...
Barry Halloran
Barry,
try something like this:

values 'a' range [24", 252"]

this will force the object, when stretched, to be always greater that 2'-0" or less 21'-0"

Dan K