Solibri API - Launching Solibri Autorun

You have three options for launching Solibri autorun:

  • Create a shortcut on your desktop.
  • Create a batch file (.bat)
  • Use command prompt to run the XML file

Using a Shortcut to Launch Solibri Autorun

Create a shortcut on your desktop and add the file paths to Solibri and the Autorun XML file to the target field. You can, for example, copy the shortcut of Solibri and edit the shortcut properties. Edit the target field and click Apply and then OK:

shortcut.png

Rename the shortcut, for example as Solibri Autorun.

Using a Batch File to Launch Solibri Autorun

A batch (.bat) file is a special kind of text file, which can include command(s) that Command Prompt can understand and run in sequence to perform various actions. You can create a batch file which includes the command to start Solibri Autorun.

To create a batch file:

  1. Create a new text file using a text editor.

  2. Add the file paths to Solibri and the Autorun XML file. to close the Command Prompt, add the command exit. You can also add other commands if necessary:

@ECHO off

ECHO Thank you for using Autorun
ECHO Autorun is running...

REM You can modify the line below to suit your needs.
"C:\Program Files\Solibri\SOLIBRI\Solibri.exe" "C:\Users\%Username%\Desktop\autorun.xml"

exit
  1. Save the file.

  2. Change the file extension to .bat.

Tip
If you use a batch file to launch Solibri Autorun, you can use Task Scheduler to automatically run the batch file at a certain time.

Using Command Prompt to Launch Solibri Autorun

To launch Solibri Autorun with Command Prompt, add the file paths to Solibri and the Autorun XML file as a command line.