We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

How can I use MUL2?

Anonymous
Not applicable
How can I operate mul2 correct?
Please advise

Thank you'


!2D script------------


GOSUB 10

GOSUB 20


MUL2 -A/2,1

GOSUB 20







END: !-------------------------------------------

10:

!Frame

HOTSPOT2 -A/2 , -gs_frame_thk
HOTSPOT2 A/2 , -gs_frame_thk

ADD2 -A/2,0
RECT2 0,0,gs_frame_width,-gs_frame_thk
DEL 1
ADD2 A/2,0
RECT2 0,0,-gs_frame_width,-gs_frame_thk
DEL 1
ADD2 -A/2,0
LINE2 gs_frame_width,0 , A-gs_sash_thk-gs_frame_width,0
LINE2 gs_frame_width,0-gs_frame_thk , A,0-gs_frame_thk
LINE2 gs_frame_width,-gs_sash_thk , A-gs_frame_width,0-gs_sash_thk
DEL 1

RETURN

20:
!sash 1
IF open_ang2D<0 THEN open_ang2D=0
IF open_ang2D>90 THEN open_ang2D=90

ADD2 dwid/2,0
ROT2 180-open_ang2D
RECT2 0,0,dwid/2,gs_sash_thk
ARC2 0,0,dwid/2,0,open_ang2D
DEL 2

RETURN

window Q.jpg
2 REPLIES 2
Anonymous
Not applicable
Hello!

Try 'mul2 -1, 1' and see what happens ...

- Stuart
Anonymous
Not applicable
Thanks for your suggest.