Graphical editing in macros

Home Forums Problems and solutions in GDL Graphical editing Graphical editing in macros

This topic contains 2 replies, has 2 voices, and was last updated by  Dominika Bobály 1 year, 7 months ago.

  • Author
    Posts
  • #2116

    James Murray
    Participant

    I have a macro that contains graphical editing hotspots. The local parameter being edited is an array. I would like to call the macro multiple times from the caller object, and let the macro instances have different geometry. In the macro, the array parameter might be called “shape”, while in the caller there would be separate array parameters called “shape1”, “shape2”, “shape3”. The trouble is when the graphical editing code runs, the name of the parameter being edited does not exist in the caller. (“shape”<>”shape1”). If the name matches, of course, it works.

    Is there a way to have general graphical editing in the macro, that modifies multiple specific parameters in the caller? In other words, I’m trying to have the “shape” array in the macro change the “shape1” array in the caller.

  • #2139

    James Murray
    Participant

    I guess not?

    • #2147

      Dominika Bobály
      Keymaster

      Unfortunately it is not working that way, yes. You have to put all corresponding parameters into both objects to make edit and parameter value transfer work both ways.

      Dominika Bobály
      Library Developer, Library Team
      GRAPHISOFT SE

You must be logged in to reply to this topic.