We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2007-01-24 08:42 PM
2007-01-24 11:59 PM
HOTSPOT2 0, 0 DEFINE STYLE "dimText1" Arial, 3, 8, 0 DEFINE STYLE "dimText2" Arial, 3, 2, 0 Identify = "" Identify = STR("%m", SYMB_POS_Y) IF glob_context < 20 AND glob_context <> 5 THEN PARAMETERS dimText2 = Identify ENDIF dimText1 = STR("%m", SYMB_POS_Y) STYLE "dimText1" TEXT2 0, 0, dimText1 STYLE "dimText2" TEXT2 0, 0, dimText2In АС10 this script works. It works as follows.
2007-01-25 10:59 AM
2007-01-25 10:20 PM
F. wrote:Yes. It is not possible to store. dimText2 accepts value from Identify during that moment when the object will be placed on the plan. Repeatedly it can accept value when the object will be stretched. To check up my words, add in a script one more point: HOTSPOT2 A, B
But it is not possible to store the XY-Position the object originally was positioned, isn't it? You have minimal to stretch it one time to store the position into dimtext2.
HOTSPOT2 0, 0 HOTSPOT2 A, B DEFINE STYLE "dimText1" Arial, 3, 8, 0 DEFINE STYLE "dimText2" Arial, 3, 2, 0 dimText1 = STR("%m", SYMB_POS_Y) PARAMETERS dimText2 = dimText1 STYLE "dimText1" TEXT2 0, 0, dimText1 STYLE "dimText2" TEXT2 0, 0, dimText2It is possible to apply " IF glob_context <> 5 THEN PARAMETERS dimText2 = dimText1 " to see dimText2 in a settings dialog.
2007-01-26 09:12 AM
HOTSPOT2 0, 0, 01 HOTSPOT2 a, b, 02 DEFINE STYLE "oben" Arial, 3, 8, 0 DEFINE STYLE "unten" Arial, 3, 2, 0 IF GLOB_CONTEXT>1 AND GLOB_CONTEXT<5 THEN PARAMETERS ePOSx=SYMB_POS_X, ePOSy=SYMB_POS_Y, ePOSz=SYMB_POS_Z ENDIF STYLE "oben" TEXT2 a/2, b/2, STR("%m", SYMB_POS_X)+"/"+STR("%m", SYMB_POS_Y)+"/"+STR("%m", SYMB_POS_Z) STYLE "unten" TEXT2 a/2, b/2, STR("%m", ePOSx)+"/"+STR("%m", ePOSy)+"/"+STR("%m", ePOSz)I have loged the environment parameters when object is inserted into plan:
2007-01-26 07:51 PM
VALUES "txtOption" "Measured value", "Custom Text" DEFINE STYLE "dimText" nameFont, sizeFont, anchor, typeFont TextDimY = STR("%m", SYMB_POS_Y) IF GLOB_CONTEXT <> 5 AND txtOption = "Measured value" THEN PARAMETERS customTextDimY = TextDimY ENDIF IF txtOption = "Measured value" THEN dimText = TextDimY LOCK "customTextDimY" ELSE dimText = customTextDimY ENDIF STYLE "dimText" TEXT2 0, 0, dimText
2007-01-29 06:19 PM