cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

2D Hotspot editing, please help

SeaGeoff
Ace
Howdy,
I just made a little 2D “ALIGN” object as pictured below. Pretty simple really. I added hotspots for graphic editing and they work fine in my first edition of the object. Then I attempted to revise the object to respond to scale by adding a MUL2 A_, A_ statement at the top. Everything works fine except the hotspots which are now whacko. The object works just as before in 1:1 scale but at any other scale the hotspots at the arrow heads cannot be stretched, the hotspots at the corners send the leader lines shooting off into space. Any help is greatly appreciated.

ALIGN Marker.png
Regards,
Geoff Briggs
I & I Design, Seattle, USA
AC7-28, M1 Mac, OS 15.x
Graphisoft Insider's Panel, Beta Tester
2 REPLIES 2
SeaGeoff
Ace
Here’s the code and the zipped .gsm:


!©2005 Geoff Briggs, I & I Design

FontSize = (FontSize*0.353)
DEFINE STYLE "aa" Font,FontSize, 8, 0
SET STYLE aa

MUL2 A_,A_

L3=B*TAN(Angle-90) !horiz offset from main line to arrow
L1=A-2*L3 !length of main line
L2=B/COS(Angle-90) !length of leader lines
ArX=ArSz*.028" ! scale independent arrow points
ArY=ArSz*.008"

LINE2 -L1/2,B,L1/2,B
HOTLINE2 -L1/2,B,L1/2,B


ADD2 L1/2,B
ROT2 Angle-180

LINE2 0,0,L2-ArX,0
HOTLINE2 0,0,L2,0

ADD2 L2,0

FILL markerfill
POLY2 3,6,
0,0,
-ArX,-ArY,
-ArX,ArY


DEL 3


ADD2 -L1/2,B
ROT2 -(Angle)

LINE2 0,0,L2-ArX,0
HOTLINE2 0,0,L2,0


ADD2 L2,0
FILL markerfill
POLY2 3,6,
0,0,
-ArX,-ArY,
-ArX,ArY


DEL 3


HOTSPOT2 A/2,0
HOTSPOT2 -A/2,0
!HOTSPOT2 0,B


HOTSPOT2 L1/2,0,14,B,129
HOTSPOT2 L1/2,-.1",15,B,3
HOTSPOT2 L1/2,B,16,B,2

HOTSPOT2 -L1/2,0,17,B,129
HOTSPOT2 -L1/2,-.1",18,B,3
HOTSPOT2 -L1/2,B,19,B,2

HS=B+.02"*A_ ! hotspot offset above main line
HOTSPOT2 0,HS,20,TxtPos,129
HOTSPOT2 -L1/2,HS,21,TxtPos,3
HOTSPOT2 TxtPos,HS,22,TxtPos,2

TEXT2 TxtPos,B+TxtOff,Txt

DEL TOP
Regards,
Geoff Briggs
I & I Design, Seattle, USA
AC7-28, M1 Mac, OS 15.x
Graphisoft Insider's Panel, Beta Tester
Frank Beister
Moderator
I can not proof it now, but I think you shouldn't make the "B" parameter movebale. Because this is a special one and is made strechy automatically. The text position parameter should work in your object. Try to substitute the B by a new parameter.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm