Skip to content
  • Categories
Collapse
Solibri Society Forum
  1. Home
  2. General Discussion
  3. Autorun Timestamp in report names

Autorun Timestamp in report names

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 337 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    john
    wrote on last edited by
    #1

    Hi All.

    Is it possible to get the date in the report names when using autorun.

    example: “2026-04-16_Result SummaryReport”

    best regards John

    viktorwiklandV 1 Reply Last reply
    0
    • MattiM Offline
      MattiM Offline
      Matti Solibrians
      wrote on last edited by
      #2

      If you mean the report file names, then you need to ask AI to write a python script that creates an Autorun xml with the current date and runs it.

      1 Reply Last reply
      0
      • viktorwiklandV Offline
        viktorwiklandV Offline
        viktorwikland
        replied to john on last edited by
        #3

        @john said in Autorun Timestamp in report names:

        Is it possible to get the date in the report names when using autorun.

        I have switched jobs since last time I did this and I cannot recall exactly how I did this…
        But I started did something along the lines of;

        I saved my file with a placeholder for date
        <itoreport name=“FileName” file=“FilePath\C\Modell\Versions\currentDate_Solibri Autorun.xlsx” />

        And then in my .bat that runs the .xml i had a line of code that launched a .ps1 that replaced all placeholder values with the current date
        Example .ps1:
        $date = Get-Date -Format “yyyy-MM-dd”

        Get-ChildItem -Filter “currentDate” | ForEach-Object {
        $newName = $.Name -replace “currentDate”, $date
        Rename-Item -Path $
        .FullName -NewName $newName
        }

        Hope this helps somewhat 🙂

        1 Reply Last reply
        0
        • J Offline
          J Offline
          john
          wrote on last edited by
          #4

          allright thanks for the help you guys 🙂

          I’m not that firm in coding so I think I’d have to ask someone to make it work. looks like there is some different workaround methods we can use. I just found it strange that this was not a standard function

          thanks again 👌

          1 Reply Last reply
          0

          Copyright © 2025 Solibri Inc. | Powered by NodeBB

          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories