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.

Group function with rnd

Anonymous
Not applicable
I can't get the RND function to work properly when the part of the object being created is within a GROUP function.

The RND works fine before and after -.. ie:

FOR I=1 TO num STEP 1
length = RND (12)
LIN_ 0,0,0,0,-length,0
GROUP "keeper"
ROTx 90
CYLIND length,A/2
DEL 1
ENDGROUP
NEXT I

In this code - the LIN_ is random length when outside of the GROUP call (as it is sown above). Place it within the GROUP call, (place the LIN_ line after the ROTx 90) and the LIN_ is random for each time you reload/rebuild the object, but not random within the GROUP feature - meaning that each iteration of the FOR loop, the line is the same length.

Can anyone explain why this might be? I've run into GROUP issues before, but this one seems like it should be so simple. Anyone? Am I missing something obvious?
2 REPLIES 2
Anonymous
Not applicable
well I found a different way. If anyone has an answer to the aforementioned question, I'd still be interested. However, I chose to use the CUTPOLY instead of using GROUPs.
Rob
Graphisoft
Graphisoft
just a thought

try to use KILLGROUP command at the end. I have suspected that the GROUP command creates a sort of permanent block in the memory..however I haven't tested that...
::rk