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

GDL 101 windows question - setting the origin

Anonymous
Not applicable
Finally got my own window "working" (basically a curtain wall with graphically editable panel materials, staggerable transoms etc) and I'm pretty happy with it BUT...

I missed something in class.

I think what I'm asking is : how do you set your origin in 2d and 3d so it's not in the middle of your window?

In 3d, to get my window co-ordinated with the A B ZZYZX co-ordinates I'm having to move the object Addx -A/2 (similar in 2d)

This means when I stretch it in 2d or 3d it expands from the centerpoint. Not very user friendly when I just want to stretch it to the right length from the origin.

I've been searching the forum for a bit but no joy on this yet.
10 REPLIES 10
Anonymous
Not applicable
I'm using:
AC14 4204, windows 7 (64bit)
Quad CPU @.6GHz, 4GB ram
Ben Cohen
Advocate
Hey Angry

Maybe its your geometry method. Is it set to the centre, left or right ?
Ben Cohen
Mac and PC
Archicad (Latest Version) aus
www.4DLibrary.com.au
Anonymous
Not applicable
Got that set to the left on placed instances.
Still same behavior- expands/contracts from the centre (equally from both ends)
Is there a pre-set for this in GDL?
Ben Cohen
Advocate
are you using a value list for the window widths?(A) This will stop the window from anchoring properly. (its a reported bug)
Ben Cohen
Mac and PC
Archicad (Latest Version) aus
www.4DLibrary.com.au
Anonymous
Not applicable
...Like an array?
yes.

the value of A comes from a summation of the array of window widths.
As opposed the other way around.
this could be it.

Might have to figure out a way shunt it across by 1/2 delta A!

Thanks - I'll look into the known bugs section of the wiki.
Ben Cohen
Advocate
i can't remember ever seeing this in archiWiki, but I reported this in v14 beta testing. Its also there in 13 - I think 12 was fine.
If you open up the settings of your window, it will anchor correctly. Just not from the info box..

Its a very annoying bug...... But sadly I don't think its getting much attention.
Ben Cohen
Mac and PC
Archicad (Latest Version) aus
www.4DLibrary.com.au
Anonymous
Not applicable
Saved it out as a regular object and the behavior stops.
Pretty conclusive.

Wish I could find a way of referencing the previous state as I'm editing. That way I could compensate for the offset.

Thanks Ben. You saved me a few hours of fruitless bug finding!
Barry Kelly
Moderator
Angry,
When you open you window script and look at the "2D full view" of it, is the origin in the centre or to one side?
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
Hi Barry,

In 2D Full View the window origin is in the middle of the traced opening.
So it appears drawn from the middle of the opening and overlaps the traced wall by half its length to the right.

A