2021-12-16
09:38 AM
- last edited on
2021-12-28
01:32 PM
by
Gordana Radonic
*FIXED*
Solution was to remove the MUL2 line and all works as expected
~
I've been trying this for too long and I'm hoping someone will be able to help.
I've created a 2D warning symbol that I can place on the model, I want it to show as paper size (the same size regardless of the view scale).
I've set "paperToModel = GLOB_SCALE/50" (GLOB_SCALE/1000 makes them too small) which does something, but not quite right. It looks like I need to add "_mm" somewhere but I can't figure out where.
Any help very much appreciated!
2D Code is as follows:
!
! Name : CDM Warning.gsm
! Date : Wednesday, 15 December 2021
! Version : 25.00
! Written by Archicad
!
paperToModel = GLOB_SCALE/50
mul2 A/0.241436*paperToModel, B/0.368736*paperToModel
add2 -6.979099723991*paperToModel, 1.647481290148*paperToModel
drawindex 10
pen penAttribute_1
fill fillAttribute_1
poly2_b{5} 10, 2, 0, 3, penAttribute_1, penAttribute_2,
0, 0, 1, 0, 0, 1, 0,
7.019099723991*paperToModel, -1.498553402547*paperToModel, 1,
7.180535659386*paperToModel, -1.498553402547*paperToModel, 1,
7.180535659386*paperToModel, -1.458553402547*paperToModel, 900,
0, 120, 4001,
7.13445870784*paperToModel, -1.298745781412*paperToModel, 1,
7.099817691688*paperToModel, -1.318745781412*paperToModel, 900,
0, 120, 4001,
6.98445870784*paperToModel, -1.438553402547*paperToModel, 1,
7.019099723991*paperToModel, -1.458553402547*paperToModel, 900,
0, 120, 4001
pen penAttribute_3
set line_type lineTypeAttribute_1
poly2_b{5} 13, 1, 0, 3, 1, 0,
0, 0, 1, 0, 0, 1, 0,
7.019099723991*paperToModel, -1.498553402547*paperToModel, 1,
7.180535659386*paperToModel, -1.498553402547*paperToModel, 1,
7.180535659386*paperToModel, -1.458553402547*paperToModel, 900,
0, 120, 4001,
7.215176675537*paperToModel, -1.438553402547*paperToModel, 1,
7.13445870784*paperToModel, -1.298745781412*paperToModel, 1,
7.099817691688*paperToModel, -1.318745781412*paperToModel, 900,
0, 120, 4001,
7.065176675537*paperToModel, -1.298745781412*paperToModel, 1,
6.98445870784*paperToModel, -1.438553402547*paperToModel, 1,
7.019099723991*paperToModel, -1.458553402547*paperToModel, 900,
0, 120, 4001,
7.019099723991*paperToModel, -1.498553402547*paperToModel, 1
pen penAttribute_4
hotspot2 7.099817691688*paperToModel, -1.498553402547*paperToModel
define style{2} "AC_STYLE_1" "Px Grotesk Bold", 2.5, 0
paragraph "AC_PRG_11" 2, 0, 0, 0, 1
pen penAttribute_3
set style "AC_STYLE_1"
"!"
endparagraph
textblock "AC_TEXTBLOCK_11" 0, 5, 0, 1, 1, 1,
"AC_PRG_11"
richtext2 7.102984129532*paperToModel, -1.42053340455*paperToModel, "AC_TEXTBLOCK_11"
define style{2} "AC_STYLE_2" "Px Grotesk Bold", 1.5, 0
paragraph "AC_PRG_12" 2, 0, 0, 0, 1
set style "AC_STYLE_2"
GLOB_ID
endparagraph
textblock "AC_TEXTBLOCK_12" 0, 2, 0, 1, 1, 1,
"AC_PRG_12"
richtext2 7.102984129532*paperToModel, -1.515662790148*paperToModel, "AC_TEXTBLOCK_12"