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

Streching objects 2 ways from a common origin

Anonymous
Not applicable
Is there a way to make an object that can stretch in two directions from a common origin point? At a 90, the objects uses the A and B codes to stretch each leg, but we would like the objects to work with variable angles. Any help or suggestions would be appreciated.
1 REPLY 1
Anonymous
Not applicable
tprokop wrote:
Is there a way to make an object that can stretch in two directions from a common origin point? At a 90, the objects uses the A and B codes to stretch each leg, but we would like the objects to work with variable angles. Any help or suggestions would be appreciated.
A simple option would be using a parameter like len2, and define at the begining of the script that len2 = A.

If you want the object to be stretchable even with the "angular" part, you should then define some "diamond" HOTSPOT, the "new" feature available in AC8 : you'll be able to strech either using the "auto strecth" feature of the A parameter and the scripted "stretchable" part based on HOTSPOT function.

You'll then have to use the function explained here :
http://archicad-talk.graphisoft.com/viewtopic.php?t=2712
IF GLOB_MODPAR_NAME='galq' THEN
   IF galq=30 THEN
      PARAMETERS A=22"
      PARAMETERS ZZYZX=48"
   ENDIF
   IF galq=50 THEN.... 
In plain english, this give :
IF the last parameter edited was A then len2 = A
IF the last parameter edited was len2 then A = len2

PS : thanks to James Murray for the code 🙂