zone stamp: default property settings

Home Forums Problems and solutions in GDL Informations from the environment zone stamp: default property settings

Viewing 6 reply threads
  • Author
    Posts
    • #18351
      Joachim Sühlo
      Participant

      In the German default zone stamp you can choose to show properties.
      When you open the object and want to set a special property as default (in the GDL editor),
      this is not possible.
      The zone stamp macro uses the code:

      UI_CUSTOM_POPUP_LISTITEM itemID, UIGroup, _paramContentIDbyRow[iUI], 0, “” , “”, 1, 3, 1, _displayedProperty,
      “”, “”, “”, Keine,
      parentProperties`

      When I use instead the following, I can add default values in the editor:

      ui_custom_popup_infield “sIDRow1_50”,
      50, 244, 222,20, ! X Position, Y Position, Width, Height
      1, ! Store Hidden ID
      3, ! Tree Depth
      1, ! Grouping Method
      _displayName, ! Created value description
      _parentProperties

      Is there a way to change the code in the first example, to allow the definition of fdefault values in the GDL editor?

      GDL Object Developer
      b-prisma
      MAC OSx 10.12

    • #18353
      Péter Baksa
      Keymaster

      I couldn’t get the second one to work either.

      The parameter list in the GDL editor is not connected to anything in the UI script, it is only affected by the parameter script.
      You can’t get the property GUIDs in the parameter script, that’s why the UI_CUSTOM_POPUP_LISTITEM and UI_CUSTOM_POPUP_INFIELD were created.

      Péter Baksa
      Library Platform, Software Engineer
      GRAPHISOFT SE

    • #18354
      Péter Baksa
      Keymaster

      The property GUIDs are project-dependent, a default value of the library part wouldn’t work in another plan.

      Péter Baksa
      Library Platform, Software Engineer
      GRAPHISOFT SE

    • #18355
      Joachim Sühlo
      Participant

      the 2nd example had some Requests before. This code is from the gdl.graphisoft.com website.
      In the example zone stamp both master and parameter script are empty.

      dim _parentProperties[]
      n = REQUEST (“Properties_Of_Parent”, “”, _parentProperties)

      _displayName = “”
      n = REQUEST (“Property_Name”, sIDRow1_50, _typeName, _groupName, _propertyName)
      if _typeName # “” then _displayName = _typeName + ” : ”
      if _groupName # “” then _displayName = _displayName + _groupName + ” : ”
      _displayName = _displayName + _propertyName ! no need to check, always has a string value

      ui_custom_popup_infield “sIDRow1_50”,
      50, 244, 222,20, ! X Position, Y Position, Width, Height
      1, ! Store Hidden ID
      3, ! Tree Depth
      1, ! Grouping Method
      _displayName, ! Created value description
      _parentProperties

      GDL Object Developer
      b-prisma
      MAC OSx 10.12

    • #18356
      Joachim Sühlo
      Participant

      The property GUIDs are project-dependent, a default value of the library part wouldn’t work in another plan.

      Does this also applies to projects always created from the same Template file?

      GDL Object Developer
      b-prisma
      MAC OSx 10.12

    • #18357
      Joachim Sühlo
      Participant

      Does this also applies to projects always created from the same Template file?
      I checked this both with a pln, saving under a neww name and a tpl saving under a new name:
      both works, the GUIDs stay the same.

      GDL Object Developer
      b-prisma
      MAC OSx 10.12

    • #18358
      Péter Baksa
      Keymaster

      As long as the properties aren’t deleted by the user in Options / Property Manager.

      Péter Baksa
      Library Platform, Software Engineer
      GRAPHISOFT SE

Viewing 6 reply threads
  • The forum ‘Informations from the environment’ is closed to new topics and replies.