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

Consistent eroor in my autoscripted object

Mats_Knutsson
Advisor
I'm trying to make a simple lamp and gets an error message in the 3D view all the time. The code that's the problem is (in about 8 places):

result_113 = sweepgroup{2} ("group_112", -0.001732050807569, 0.001, 0)

What's the deal?

Also the white colour looks darker on the vertical surfaces...everything that's not glass in the image is white.

See attached image fo what I'm trying to make.
/Mats GDL-moron
AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
13 REPLIES 13
Anonymous
Not applicable
Hello Mats,
Thanks for checking on that for us.
Peter Devlin
Frank Beister
Advisor
I got mail from GS:
The difference between SWEEPGROUP and SWEEPGROUP{2} is that in the
former case the actual transformation matrix is applied again to the
direction vector of the sweeping operation with respect to the current
coordinate system. (Roughly speaking, in the case of SWEEPGROUP, the
current transformation is applied to the direction vector twice with
respect to the global coordinate system.)
See the example below. We rotate the coordinate system (CS) by 45
degrees around the z axis. Since SWEEPGROUP rotates the direction vector
again in the current CS by 45, the direction vector of swept_1 in the
global CS will be {0,1,0}. In the case of SWEEPGROUP{2} the direction
vector is left as is in the local CS, so its direction in the global
space will be {sqr(2)/2,sqr(2)/2,0}. (See the attached example.)

resol 8
rotz 45

group "tool_1"
addz 1
sphere 0.2
del 1
endgroup

group "tool_2"
addz 2
sphere 0.2
del 1
endgroup

swept_1 = sweepgroup( "tool_1", 1, 0, 0 )
placegroup swept_1

swept_2 = sweepgroup{2}( "tool_2", 1, 0, 0 )
placegroup swept_2
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Anonymous
Not applicable
Hello Frank,
Thanks for passing this along to us.
I was wondering how you knew that
the syntax was not different between
sweepgroup and sweepgroup{2}
when sweepgroup{2} is not mentioned
in the AC 10 GDL manual nor in the
New GDL Features in Archicad 10
that I could see.
Thanks,
Peter Devlin
Frank Beister
Advisor
I was wondering how you knew that
the syntax was not different between
sweepgroup and sweepgroup{2}
I did not knew. I compared both commands and it was obvisiously the same. 😉 I made an illustration and uploaded it to www.selfgdl.com.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm