Jan-21-2021, 03:29 PM
Hello. I'm struggling with a school project. I'm fairly new to Python, and I'm hoping for some great suggestions to solve my problem.
What I am trying to achieve is to simplify an operation up against the BIM program Solibri. By creating a script to, among other things, automate rule checking. Today one is dependent on a bat.file and an xml.file. the bat file opens the xml file and runs the references located there.
The references in the xml file are entered manually. What I hope to achieve is to create a script that retrieves the references automatically from given folders.
The text below show the bat file and the xml file.
Looking forward to hear from you.
Sincerely, Jan.
The bat-file
@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\Desktop\Solibri Autorun\autorun.xml"
exit
the xml-file
<?xml version="1.0" encoding="ISO-8859-1"?>
<batch name="Simple Batch" default="root">
<!-- This is the starting task -->
<target name="root">
<openmodel
file="C:\Users\Desktop\Solibri Autorun\IFC\HJ3_Modell.ifc" />
<openmodel
file="C:\Users\janiv\Desktop\Solibri Autorun\IFC\SM3.ifc" />
<openclassification
file="C:\Users\Public\Solibri\SOLIBRI\Classifications\MEP Components.classification"/>
<openruleset
file="C:\Users\Public\Solibri\SOLIBRI\Rulesets\MEP Rules\Intersections in MEP Models.cset"/>
<check />
<autocomment zoom="TRUE" />
<createpresentation />
<bcfreport
file="C:\Users\Public\Solibri\SOLIBRI\Samples\reports\Found issues.bcfzip" version="2" />
<savemodel
file="C:\Users\Desktop\Solibri Autorun\SMC\BIMBAR.smc" />
<exit />
</target>
</batch>
What I am trying to achieve is to simplify an operation up against the BIM program Solibri. By creating a script to, among other things, automate rule checking. Today one is dependent on a bat.file and an xml.file. the bat file opens the xml file and runs the references located there.
The references in the xml file are entered manually. What I hope to achieve is to create a script that retrieves the references automatically from given folders.
The text below show the bat file and the xml file.
Looking forward to hear from you.
Sincerely, Jan.
The bat-file
@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\Desktop\Solibri Autorun\autorun.xml"
exit
the xml-file
<?xml version="1.0" encoding="ISO-8859-1"?>
<batch name="Simple Batch" default="root">
<!-- This is the starting task -->
<target name="root">
<openmodel
file="C:\Users\Desktop\Solibri Autorun\IFC\HJ3_Modell.ifc" />
<openmodel
file="C:\Users\janiv\Desktop\Solibri Autorun\IFC\SM3.ifc" />
<openclassification
file="C:\Users\Public\Solibri\SOLIBRI\Classifications\MEP Components.classification"/>
<openruleset
file="C:\Users\Public\Solibri\SOLIBRI\Rulesets\MEP Rules\Intersections in MEP Models.cset"/>
<check />
<autocomment zoom="TRUE" />
<createpresentation />
<bcfreport
file="C:\Users\Public\Solibri\SOLIBRI\Samples\reports\Found issues.bcfzip" version="2" />
<savemodel
file="C:\Users\Desktop\Solibri Autorun\SMC\BIMBAR.smc" />
<exit />
</target>
</batch>