We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2021-01-07 03:58 PM - last edited on 2021-09-14 01:32 PM by Noemi Balogh
Solved! Go to Solution.
2021-01-11 09:15 AM
2021-01-08 01:25 AM
runxel wrote:
Hey there, found another bug:
GLOB_WORLD_ORIGO_OFFSET_X (and _Y) always return 0 (zero).
Tested with AC 23 and 24.
2021-01-08 10:11 AM
add2 -GLOB_WORLD_ORIGO_OFFSET_X-SYMB_POS_X, -GLOB_WORLD_ORIGO_OFFSET_X-SYMB_POS_Y line2 -0.1, 0.0, 0.1, 0.0 LINE2 0.0, -0.1, 0.0, 0.1 hotspot2 0.0, 0.0, 1 text2 0, 0, "( 0.00 ; 0.00 )" text2 0, 0.5, "World Origin" del top if abs(GLOB_WORLD_ORIGO_OFFSET_X) > 0.01 or\ abs(GLOB_WORLD_ORIGO_OFFSET_Y) > 0.01 then ! THIS WILL NEVER BE EXECUTED add2 - SYMB_POS_X, - SYMB_POS_Y line2 -0.1, 0.0, 0.1, 0.0 line2 0.0, -0.1, 0.0, 0.1 hotspot2 0.0, 0.0, 2 text2 0, 0, "(" + str(GLOB_WORLD_ORIGO_OFFSET_X, 9, 4) + "; " + str(GLOB_WORLD_ORIGO_OFFSET_Y, 9, 4) + " )" text2 0, 0.5, "Virtual Origin" del top endif if abs(GLOB_WORLD_ORIGO_OFFSET_X + SYMB_POS_X) > 0.01 or\ abs(GLOB_WORLD_ORIGO_OFFSET_Y + SYMB_POS_Y) > 0.01 then line2 -0.1, 0.0, 0.1, 0.0 line2 0.0, -0.1, 0.0, 0.1 hotspot2 0.0, 0.0, 3 text2 0, 0, "(" + str(GLOB_WORLD_ORIGO_OFFSET_X + SYMB_POS_X, 9, 4) + "; " + str(GLOB_WORLD_ORIGO_OFFSET_Y + SYMB_POS_Y, 9, 4) + " )" text2 0, 0.5, "Object Placement" endif
2021-01-11 03:15 AM
if abs(GLOB_WORLD_ORIGO_OFFSET_X) > 0.01 or\ abs(GLOB_WORLD_ORIGO_OFFSET_Y) > 0.01 thenneeds to be ...
if abs(GLOB_WORLD_ORIGO_OFFSET_X) > 0.01 or abs(GLOB_WORLD_ORIGO_OFFSET_Y) > 0.01 thenAll on one line and the "/" removed after the OR
2021-01-11 09:15 AM
2021-01-11 05:08 PM
Peter wrote:THAT was the missing piece of information...
This offset is only recalculated when a file is opened, so it might look it isn't working with a moved object.
First move the object far away from the origin, save the file, re-open it, and the extra hotspot will be visible.