2010-09-30 10:08 AM
sz=sz/1000 GLOB_SCALE=A_ MUL2 A_,A_ pX = (X~ + 0.0) pY = (Y~ + 0.0) PARAMETERS pX=pX, pY=pY IF coord=ac1 THEN pX = (pX + defx) pY = (pY + defy) ENDIF HOTSPOT2 0,0 PEN pen_colour CIRCLE2 0,0, sz/2 LINE2 -sz,0,sz,0 LINE2 0,-sz,0,sz !LINE2 0,0,pX,pY DEFINE STYLE "pmx" font, tht, 7, 0 SET STYLE "pmx" IF dimen=dim0 THEN TEXT2 sz,0, xtext + ": " + STR("%m",pX) ELSE TEXT2 sz,0, xtext + ": " + STR("%.0mm",pX) ENDIF DEFINE STYLE "pmy" font, tht, 1, 0 SET STYLE "pmy" IF dimen=dim0 THEN TEXT2 sz,0, ytext + ": " + STR("%m",pY) ELSE TEXT2 sz,0, ytext + ": " + STR("%.0mm",pY) ENDIFIt seems to work fine - you place the object and it displays its coordinates in the scene.
2010-09-30 11:26 AM
2010-09-30 04:52 PM
pX = X~ pY = Y~ ! Marker HOTSPOT2 0,0 PEN 1 CIRCLE2 0,0, 0.05 LINE2 -0.1,0,0.1,0 LINE2 0,-0.1,0,0.1 DEFINE STYLE "txt" font, 3, 7, 0 SET STYLE "txt" TEXT2 sz,0.5, "X: " + STR("%m",pX) TEXT2 sz,0, "Y: " + STR("%m",pY)When placed close the origin, it remembers it's position absolutely fine.
2010-10-01 08:28 AM
2010-10-01 09:31 AM
pX = SYMB_POS_X + GLOB_WORLD_ORIGO_OFFSET_X pY = SYMB_POS_Y + GLOB_WORLD_ORIGO_OFFSET_YThere is an example for this in GDL reference guide pdf, just after the list of global variables.
2010-10-01 03:12 PM
2010-10-02 05:17 AM
Move every project to 0,0?Absolutely: Yes. ArchiCAD has to handle too big numbers for too precise calculations.
2010-10-29 11:59 AM
2010-11-03 11:58 PM