Skip to content
  • Categories
Collapse
Solibri Society Forum
  1. Home
  2. Comments & Feedback
  3. Tech Talks
  4. Automating IfcOptimizer ... Did you know?

Automating IfcOptimizer ... Did you know?

Scheduled Pinned Locked Moved Tech Talks
ifcoptimizer
4 Posts 4 Posters 1.3k 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.
  • cpreidelC Offline
    cpreidelC Offline
    cpreidel
    wrote on last edited by cpreidel
    #1

    Hey all!

    Recently I have been talking to customers about the IFC Optimizer, and some asked if it is possible to automate the Optimizer a bit.

    Answer: Yes, you can! The application can be executed via console commands so that you can easily create a batch file (on Windows). Just try something like this

    for %%f in (*.ifc) do (
    	"c:\Program Files\Solibri\IFCOptimizer\Solibri IFC Optimizer.exe" -in="%cd%\%%f" -out="%cd%"
    )
    

    To make life easier, just extract StackOptimizer.bat from StackOptimizer.zip into the folder with your IFCs and execute. Additionally, I added a Readme.txt file, which contains a bit more information on how to use the console commands.

    Have fun!

    R 1 Reply Last reply
    6
    • Daniel D.D Offline
      Daniel D.D Offline
      Daniel D.
      wrote on last edited by
      #2

      Hi everybody,

      the StackOptimizer Cornelius shared with us is great and works perfectly on a local drive. Unfortunately it did not work in a folder on our server.

      During the Solibri Society Event in Barcelona, Ibrahim Beqiri helped me out and changed the .bat-filein a way it does work when executed from a network-folder.

      You just have to fill in the correct folder path in the bat-file. NetworkStackOptimizer.zip

      The very smart thing about the original file is, that you could execute it from any (local) folder just like it is. When using the NetworkStackOptimizer you have to change the folder path to the actual folder where the ifc-files are.

      It would be nice if anyone could improve the file in a way that it works from a networkfolder without having to adjust the folder path, Just optimizing the ifc-files in the folder where the bat-file is executed from.
      Good luck,

      Best regards, Daniel

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fwicki
        wrote on last edited by fwicki
        #3

        @cpreidel said in Automating IfcOptimizer ... Did you know?:

        %%f

        Hey there,

        Old thread, I know, but is there any way to achieve this on osx? like with automator, javascript or python?
        glad for any hints, tipps (;

        thanks a lot and best

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Ronald van Emst
          replied to cpreidel on last edited by
          #4

          @cpreidel said in Automating IfcOptimizer ... Did you know?:

          Hey all!

          Recently I have been talking to customers about the IFC Optimizer, and some asked if it is possible to automate the Optimizer a bit.

          Answer: Yes, you can! The application can be executed via console commands so that you can easily create a batch file (on Windows). Just try something like this

          for %%f in (*.ifc) do (
          	"c:\Program Files\Solibri\IFCOptimizer\Solibri IFC Optimizer.exe" -in="%cd%\%%f" -out="%cd%"
          )
          

          To make life easier, just extract StackOptimizer.bat from StackOptimizer.zip into the folder with your IFCs and execute. Additionally, I added a Readme.txt file, which contains a bit more information on how to use the console commands.

          Have fun!

          Then i have another question about this thread as well.

          Is it possible to run this feature in the same batch file as the Autorun batch file? So we can first optimize the files and in the same action they will update these files into the .smc file.

          thanks.

          1 Reply Last reply
          1

          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