cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Patrick M
Ace

GDL Script - User Origin Offset

When I create GDL objects, I often combine scripted and saved elements. As such, my method always involves saving from or related to a position intentionally at/near 0,0,0.
I have a file, when saving objects at 0,0,0, it thinks they are saved -650,-1780 from the project origin. 
I have checked the coordinates, there is no user defined origin I could be inadvertently saving from. I have checked the model primitives I'm saving, to ensure there is no cover fill handle or rotation axis/origin that is hundreds/thousands offset from 0,0,0.

View rotation is 0º in the plan view I am saving from.
...

Screenshot 2026-05-01 at 9.16.35 AM.png

Screenshot 2026-05-01 at 9.16.51 AM.png

Screenshot 2026-05-01 at 9.17.07 AM.png


Anyone else ever see an object save with absurd add commands in the resultant geometry?
My trouble is, if I place a scripted component or modify the script, it is virtually impossible to get things lined up with the saved geometry.

There has to be something I'm missing here!

 

Operating system used: Mac Apple Silicon

BIM solutions and trouble shooting (self proclaimed) expert. Using Archicad 26 5002 US on Mac OS 11.5.2
Setup info provided by author
1 Reply 1
runxel
Moderator

Patrick, can you confirm this also happens in a clean file started from an OOTB template?

The only reason I can think of is that at some point you saved this file and opened it again, with elements far away from the actual origin. In this case Archicad recalculates an offset to mitigate the "too far from origin" issue. This can not be seen in the interface, but GDL still refers to the original origin.

Other than that I have not seen this before.

Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!