Skip to content
  • Categories
Collapse
Solibri Society Forum
  1. Home
  2. General Discussion
  3. Automatic update IFC models

Automatic update IFC models

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 814 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.
  • S Offline
    S Offline
    silje_kk
    wrote on last edited by
    #1

    Hi,

    Shot version:

    1. Does anyone know how I can get a list of all the file paths of the models in my Solibri model? Ex. with the help of an ITO?
    2. Does anyone else has a problem with the xml code line <autoupdatemodels/>?

    Long version:
    For some reason the xml code line <autoupdatemodels/> does not seem to work with my Solibri v. 9.13.4.19. Does anyone else have a problem with this code line?

    I want to update all the ifc models in my Solibri model every night. Today I do this with an xml, where I list all the filepaths and use the code line <updatemodel file=“C:…” for each model. Not very efficient when the models are replaced/changed ++.

    So now my plan B is to create the xml (that updates the Solibri model) with the “<updatemodel…” lines that is also automatically updated, like this:
    0. Open the Solibri model (#1 xml)

    1. Automatically export an ITO with the filepaths (#1 xml)
    2. Create a script that translate the ITO to an xml with the “<updatemodel…” lines (script)
    3. Run the new xml that update all the correct filepaths. (#2 xml)

    Hope someone can help me 🙂

    S

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lucasmello
      wrote on last edited by lucasmello
      #2

      I don’t know if I can help you, but I use this XML structure below to update models:

      <?xml version=“1.0” encoding=“ISO-8859-1”?>
      <batch name=“UPDATE MODELS” default=“root”>

      <target name=“root”>

      <openmodel 
        file="C:..." />
      
      <autoupdatemodels/>
      
      <savemodel 
        file="C:..." />
      
      <exit /> 
      

      </target>
      </batch>

      And to make it run at night, I use the Task Scheduler to run a .bat file like this:

      @ECHO off

      ECHO Autorun operating…
      ECHO Please wait…

      REM In the line below, you change the path to the SMC file for autorun.
      “C:\Program Files\Solibri\SOLIBRI\Solibri.exe” “(xml path) C:…”

      exit

      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