Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
School project
#1
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>
Reply


Messages In This Thread
School project - by janivar91 - Jan-21-2021, 03:29 PM
RE: School project - by Larz60+ - Jan-21-2021, 07:51 PM
RE: School project - by janivar91 - Jan-22-2021, 12:02 PM
RE: School project - by KonohaHokage - Jan-23-2021, 06:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  my python project for school vavervirus 2 772 Oct-12-2023, 03:28 AM
Last Post: buran
Shocked School project -- need help with it it says syntax error XPGKNIGHT 6 3,467 Aug-11-2022, 08:43 PM
Last Post: deanhystad
  Python School Project andreas30298 2 2,237 Nov-12-2020, 09:58 AM
Last Post: Axel_Erfurt
  I need help for a school project IndyNeerhoff 1 2,171 Sep-28-2019, 08:28 PM
Last Post: Gribouillis
  [Tkinter] Tkinter project school Kersow 2 2,551 Apr-08-2019, 08:45 PM
Last Post: Larz60+
  card dealer school project kalle1234 5 13,707 Jan-05-2019, 09:21 PM
Last Post: ichabod801
  Small game (school project) Ganesh 7 5,790 Nov-08-2017, 09:04 PM
Last Post: Ganesh

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020