Running dataflows from the command line

Gio Siradze

Simplebim 11 supports running dataflows directly from the command line. This makes it easier to automate tasks and process models without opening the user interface, especially when using the close parameter.

The basic syntax looks like this:

Simplebim11.exe <import file> <dataflow file>
Simplebim11.exe <import file> <dataflow file> close
Simplebim11.exe <import file> <dataflow file> <export file>
Simplebim11.exe <import file> <dataflow file> <export file> close

Parameters explained:

  • <import file> – The path to the model you want to process.
  • <dataflow file> – The path to the dataflow you want to run on the model.
  • <export file> – (Optional) The path where you want to save the resulting model.
  • close – (Optional) Opens Simplebim with a minimal user interface and closes it automatically after processing.

Examples:

  1. Apply a dataflow to a model and leave Simplebim open.
    "C:\Program Files\Datacubist\Simplebim 11\Simplebim11.exe" "C:\Models\MyModel.ifc" “C:\Dataflows\UpdateProperties.sbdf”
  2. Apply a dataflow with a minimal user interface and automatically close Simplebim after processing.
    Note that the result is not saved if the dataflow does not contain any "Save" or "Export" steps.
    "C:\Program Files\Datacubist\Simplebim 11\Simplebim11.exe" "C:\Models\MyModel.ifc" "C:\Dataflows\UpdateProperties.sbdf" close
  3. Apply a dataflow and save the result to a new IFC file.
    "C:\Program Files\Datacubist\Simplebim 11\Simplebim11.exe" "C:\Models\MyModel.ifc" "C:\Dataflows\UpdateProperties.sbdf" “C:\Models\MyNewModel.ifc”
  4. Open Simplebim with a minimal user interface, apply a dataflow, save the result, and close Simplebim automatically.
    "C:\Program Files\Datacubist\Simplebim 11\Simplebim11.exe" "C:\Models\MyModel.ifc" "C:\Dataflows\UpdateProperties.sbdf" “C:\Models\MyNewModel.ifc" close 

Comments

2 comments

  • Comment author
    Rogério Suzuki

    Hello Gio Siradze !

    How could we proceed if we have several .ifc files in the same folder? Would it be possible to give each of them a specific suffix on a unique command line?

    Thanks in advance,

    Rogerio

    1
  • Comment author
    Gio Siradze

    Hi Rogério Suzuki,

    This can be done with a batch script. Here is an example:

    @echo off
    setlocal
    
    SET "SB11=C:\Program Files\Datacubist\Simplebim 11\Simplebim11.exe"
    SET "DATAFLOW=C:\Dataflows\myDataflow.sbdf"
    SET "IFC=C:\IFC files"
    SET "OUTPUT=C:\Processed IFC"
    SET "SUFFIX=_processed"
    
    IF NOT EXIST "%OUTPUT%" mkdir "%OUTPUT%"
    
    FOR /R "%IFC%" %%G IN (*.ifc) DO (
        "%SB11%" "%%G" "%DATAFLOW%" "%OUTPUT%\%%~nG%SUFFIX%.ifc" close
    )
    
    pause
    
    1

Please sign in to leave a comment.