Autorun Timestamp in report names
-
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.
-
@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

-
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

Copyright © 2025 Solibri Inc. | Powered by NodeBB