GLOB_​​MODPAR_​​NAME and arrays

Home Forums Problems and solutions in GDL Parameter connections GLOB_​MODPAR_​NAME and arrays

This topic contains 5 replies, has 3 voices, and was last updated by  James Murray 1 year, 10 months ago.

  • Author
    Posts
  • #2117

    James Murray
    Participant

    Is it possible to determine which specific row of an array was modified? As opposed to the array parameter as a whole.

  • #2118

    Joachim Sühlo
    Participant

    Yes, that would be really great. This is a long cherished wish.
    Please Graphisoft, apply this to the next ArcbhiCAD-version.

    GDL Object Developer
    b-prisma
    MAC OSx 10.11

  • #2119

    Gergely Fehér
    Keymaster

    Unfortunately it is not possible – and I think it won’t be possible in the near future. There are workarounds for many cases – can you tell me the problem with some more details?

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

  • #2123

    James Murray
    Participant

    I have an array of XYZ points, where either X or Y must be zero. So if the user puts a value in X, it would be nice to have the Y automatically zero out, and vice versa. For non array parameters:

    IF GLOB_MODPAR_NAME='xParam' & ABS(xParam-0)>eps THEN PARAMETERS yParam=0
    IF GLOB_MODPAR_NAME='yParam' & ABS(yParam-0)>eps THEN PARAMETERS xParam=0
    • #2134

      Gergely Fehér
      Keymaster

      In this situation there are 2 workarounds: if there is a limited number of editable hotspots or user parameters then you can add normal parameters for editing, and store their values in arrays. The other way is to have 2 arrays, and if one is edited, then check the differences and modify the other coordinate.

      Gergely Fehér
      Team Leader, Library Team
      GRAPHISOFT SE

  • #2138

    James Murray
    Participant

    Thanks for the reply, I did discover the 2-array solution on my own. I still think a GLOB_MODPAR_NAME{2} for individual items would be nice.

You must be logged in to reply to this topic.