2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations
2011-12-17 11:54 PM
2011-12-18 04:39 AM
2011-12-18 11:36 AM
Erich wrote:Merci Erich.
There are a number of ways to accomplish this. What are your known variables? delta_x? delta_y? The angle of line "D"?
Basically, you write a group of three hotspot2 commands to get a single moving hotspot constrained to a line. You just need to know the equation for your particular line.
You could also look at simplifying things depending on the know variables, or by writing your hotspot for a simple case (ie. vertical or horizontal lines) and then rotate your coordinate system.
HTH
2011-12-18 03:00 PM
2011-12-18 03:25 PM
2011-12-18 04:12 PM
IF Ax<>0 THEN ang = ATN(Ay/Ax) ELSE ang = 90 !! it could also be ang = 270 ENDIF ROT2 ang HOTSPOT2 0, Cy, ID, Cx, 1+128 : ID=ID+1 HOTSPOT2 -1, Cy, ID, Cx, 3 : ID=ID+1 HOTSPOT2 Cx, Cy, ID, Cx, 2 : ID=ID+1 DEL 1
2011-12-18 10:24 PM
Juha wrote:I don't understand
parameters b= (-a)
2011-12-19 02:18 PM
2011-12-19 04:32 PM
Olivier wrote:Thanks you for your example. I have understood how you do. But I'd like understand how works the editable hotspot. No french documentation for GDL, except the documentation AC 7.0, but without editable hotspot ! And the english documentation seem sketchy !
You need some trigo to find centre and radius of the arc, according to any location of your points.
See attached example.
2011-12-19 05:42 PM
Thierry wrote:Graphical Hotspots are fully documented in each version since AC8. Goto Menu > Help > GDL Reference Guide> Graphical Editing,
Thanks you for your example. I have understood how you do. But I'd like understand how works the editable hotspot. No french documentation for GDL, except the documentation AC 7.0, but without editable hotspot ! And the english documentation seem sketchy !
Thierry wrote:I don't see the problem, you delete the transformation once done.
Is there another way without ROT2 angle ?