PROFILE REQUEST PARAMETER SCRIPT

Home Forums Problems and solutions in GDL Parameter connections PROFILE REQUEST PARAMETER SCRIPT

This topic contains 4 replies, has 2 voices, and was last updated by  Péter Baksa 1 year ago.

  • Author
    Posts
  • #4784

    Lingwisyer GC
    Participant

    https://archicad-talk.graphisoft.com/viewtopic.php?f=6&p=298537#p298537

    n = REQUEST (“Profile_default_boundingbox”, name_or_index, xmin, ymin, xmax, ymax)

    This request does not work in the parameter script, so is there some other way I can get parameters calculated from the min max returns to update their relevant parameters?

    Width = abs(_xMax – _xMin)
    Height = abs(_yMax – _yMin)

    Ling.

    AC18-23 AUS 4006
    Self-taught, bend it till it breaks.
    Win7 | E5620 x 2 | 24GB | K2200

  • #4785

    Péter Baksa
    Participant

    Hi,

    No, but a profile type parameter shows it’s default size in the UI popup (and the request is usable in UI script).

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

  • #4786

    Lingwisyer GC
    Participant

    Oh well… I was using it to calculate a maximum value and displaying that in the parameters for reference. Guess I will have to forgo that when using a complex profile.

    Thanks,
    Ling.

    AC18-23 AUS 4006
    Self-taught, bend it till it breaks.
    Win7 | E5620 x 2 | 24GB | K2200

  • #4802

    Lingwisyer GC
    Participant

    Would I need to duplicate the request in the UI Script? I removed the two parameters from the Parameter Script and inserted an infield for them but they do not change when the selected Complex Profile is changed.

    Ling.

    AC18-23 AUS 4006
    Self-taught, bend it till it breaks.
    Win7 | E5620 x 2 | 24GB | K2200

  • #4808

    Péter Baksa
    Participant

    I attached a screenshot of the “Profiled Rail” UI. The popup is an infield of a profile type parameter, in the red box you can see the size of the profile. This is done automatically by Archicad.
    In the blue box there are two outfields based on variables returned by the request. The request itself can be in the UI or the master script.

    Péter Baksa
    Library Platform, Software Engineer
    GRAPHISOFT SE

You must be logged in to reply to this topic.