ID of layout

Tagged: 

Viewing 7 reply threads
  • Author
    Posts
    • #2171
      Илья Орлов
      Participant

      Hello
      I wonder, it’s possible to script a setting of id in layout book. I’m need to make ID, which is start numbering from variable number (Exampl: ID of layot is 12, but i need make it to 35, 23 – is start number). Difficulty in the fact that i need also have an workable autotext #Layoutid, to mark the number of list.
      PS. Sorry for my English…

      Attachments:
    • #2203
      Gergely Fehér
      Keymaster

      Hi,
      As layout id can be reached as an autotext, you can not read it’s actual value in GDL script. But, if you want your layouts to start from 23, you can set that in the layout book settings.

      Gergely Fehér
      Team Leader, Library Team
      GRAPHISOFT SE

    • #2221
      Илья Орлов
      Participant

      Is it possable to make this
      1. Mark layout by autotext(numbering = id of layout in layout book)
      and at same time
      2. Mark the same layout(and start ID from my nuber 23)

    • #2229
      Gergely Fehér
      Keymaster

      I think there is no solution for that in GDL, as you can’t reach the value of the layout id.

      Gergely Fehér
      Team Leader, Library Team
      GRAPHISOFT SE

    • #2245
      Илья Орлов
      Participant

      I use this

      temp=REQUEST (“HomeDB_info”, “”, homeDBIntId, homeDBUserId, homeDBName, homeContext)
      !—————————–
      txt1=datetimestring
      txt2=index+pop
      txt3=homeDBIntId+pop

      Pop – this is my variable start number

      But script don’t use “homeDBUserId”(layout id) as arithmetical number (“homeDBIntId”(global ID) – used as number)
      Can I convert “homeDBUserId” to number?

    • #2246
      Илья Орлов
      Participant

      I’m need to do this

      Attachments:
    • #2250
      Gergely Fehér
      Keymaster

      To convert strings to numbers, you can use the SPLIT function.

      Gergely Fehér
      Team Leader, Library Team
      GRAPHISOFT SE

    • #2685
      Dmitry Rogozhin
      Participant

      `n = REQUEST (“HomeDB_info”, “”, homeDBIntId, homeDBUserId, homeDBName, homeContext)
      n1= SPLIT (homeDBUserId, “%n”, num)
      n2 = SPLIT (GLOB_LAYER, “%n”, num1)
      if num1 = 0 then
      part1=”Prefix layout”
      part2=”.postfix”
      lenp1 = STRLEN(part1)
      lenp2 = STRLEN(part2)
      n = STRSUB(GLOB_LAYER,lenp1+2,STRLEN(GLOB_LAYER)-lenp1-lenp2-1)
      n2 = SPLIT (n, “%n”, num1)
      endif

      I used this code to solve this problem. An example of an object can be viewed here
      https://yadi.sk/d/RmNZDFD7ubPPv

Viewing 7 reply threads
  • The forum ‘Documentation elements, text handling’ is closed to new topics and replies.