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

GDL
About building parametric objects with GDL.

Moving part of an objet with a hotspot

Anonymous
Not applicable
I am trying to put in place an objet that has a 3D form and 2D éléments, the red lines (please see images). I would like to allow the user to move manually the 2D lines in red. The 2D red lines are on itself an objet that is called into the final object.

I have managed to use the ADD2 and allow to enter a distance but I would prefer to let the user freely move that part of the objet (the 3D doesn't move).

So far this is the code that I have to call the 2D lines and move it by the ADD2 command. How could I change so to have a point to manually drag the red lines?

Thank you in advance.

ADD2 0,-AF5_A
        gosub "symbole 2D"

            end

"symbole 2D":
call    "AF1",
    PARAMETERS A = 0.187450297757, B = 0.176699818365, ZZYZX =            1,
        AC_show2DHotspotsIn3D =      1, ac_bottomlevel =            1,
        ac_toplevel =            0, use_stored_environment =      0,
        lineTypeAttribute_1 = lineTypeAttribute_1, penAttribute_1 = penAttribute_5,
        penAttribute_2 = penAttribute_6, penAttribute_3 = penAttribute_7
del          2
pen     penAttribute_6
hotspot2 -1.027559348263E-16, 0.04500000948274
hotspot2 -1.192886700985E-16, -0.04500000948182
hotspot2 -1.110223024625E-16, 1.110223024625E-16
hotspot2       -0.012, 1.37906053464E-9

11 REPLIES 11
Anonymous
Not applicable
You can find precious information and file examples at the Graphisoft GDL Center.
How to make an always readable text?
Anonymous
Not applicable
Thank you. I'll let you know if I get back to it. Right now no more time for this task...

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!