Lenght type moving hotspot in 0,0

Home Forums Problems and solutions in GDL Graphical editing Lenght type moving hotspot in 0,0

Viewing 3 reply threads
  • Author
    Posts
    • #18752

      Hello all,

      I’d like to stretch a rectangle within the x-axis either by it’s low-right corner (A parameter) or by it’s low-left corner (A=0 by definition). Is there a way to do so?
      I’ve tried to do it by adding a 256 attribute to the first hotspot but when I stretch it to the left, the rectangle actually keeps its 0,0 position and changes its dimension to the right.

      Here’s what I’ve put :
      unID=unID+6
      HOTSPOT2 0, 0, unID, A, 1+256
      HOTSPOT2 0, 0, unID+1, A, 2+256
      HOTSPOT2 1, 0, unID+2, A, 3+128

    • #18754
      Péter Baksa
      Keymaster

      This is what you need:

      HOTSPOT2 0, 0, unID, A, 1+256
      HOTSPOT2 A, 0, unID+1, A, 2
      HOTSPOT2 -1, 0, unID+2, A, 3

      For the base hotspot 1+256 is ok.
      The moving hotspot 2 needs to be at the edited length from the base.
      The reference hotspot 3 must be at the opposite direction from the base.

      Here is a short tutorial about hotspots.

      Péter Baksa
      Library Platform, Software Engineer
      GRAPHISOFT SE

    • #18755

      Thank you very much, it worked!

    • #18757
      Kristian Bursell
      Participant

      If your rectangle size is set to the A value then you actually dont need to use moveable hotspots. The standard “hotspot2 A, 0” will be movebale. its one of the nice efficiencies in Archicad that is very helpful when creating windows and doors.

      So an editable rectangle (with bottom left corner as 0,0) would simply need the following 4 hotspots:
      hotspot2 0, 0
      hotspot2 0, B
      hotspot2 A, B
      hotspot2 A, 0

      CADSWIFT
      Australia

Viewing 3 reply threads
  • The forum ‘Graphical editing’ is closed to new topics and replies.