WUFI 4.0.1.208 Batch Help File Recommendations

Everything that didn't fit in any other topic
Post Reply
Ned Lyon
WUFI User
WUFI User
Posts: 22
Joined: Mon Jan 16, 2006 9:42 am -1100
Location: Boston, MA - USA
Contact:

WUFI 4.0.1.208 Batch Help File Recommendations

Post by Ned Lyon »

I think the help file for Batch Job should be clarified a little more for users who are not computer experts. The line:

WUFI ProjectFileName [Options]

can be easily missunderstood to mean type WUFI or WUFI.exe to the run command or to a .BAT file to start the program. However, one must type the full path because the durrent install process does not register WUFI.exe with the operating system (I'm not sure I would recommend registering since I often have multiple versions on one machine). So we need to type:

C:\Program Files\IBP-Software\WUFI4\WUFI.exe

This does not work either because command line execution does not like spaces. We must use the old 8.3 shorthand:

C:\Progra~1\IBP-Software\WUFI4\WUFI.exe

This also means that ProjectFilePath/Name can not have spaces either. I think including this information in the help file would be very useful. Perhaps all you need is a full sample command line and a note about spaces in file and path names.
Ned at SGH
Manfred Kehrer
WUFI International Support Team
WUFI International Support Team
Posts: 351
Joined: Thu Mar 10, 2005 2:17 am -1100
Location: Northbrook, IL; USA
Contact:

Re: WUFI 4.0.1.208 Batch Help File Recommendations

Post by Manfred Kehrer »

Ned Lyon wrote:I think the help file for Batch Job should be clarified a little more for users who are not computer experts. The line:

WUFI ProjectFileName [Options]



can be easily missunderstood to mean type WUFI or WUFI.exe to the run command or to a .BAT file to start the program. However, one must type the full path because the durrent install process does not register WUFI.exe with the operating system (I'm not sure I would recommend registering since I often have multiple versions on one machine). So we need to type:

C:\Program Files\IBP-Software\WUFI4\WUFI.exe
But only if you have installed WUFI there and only if you have an english system. A german system has "C:\Programme\IBP-Software" by default so you see it´s not so easy to write this for every user. So we have then to write "%INSTDIR%/WUFI4\WUFI.exe" where %INSTDIR% is the installation path. But then i think it is not easier to explain this "not computer experts"
Ned Lyon wrote: This does not work either because command line execution does not like spaces. We must use the old 8.3 shorthand:

C:\Progra~1\IBP-Software\WUFI4\WUFI.exe
These quotes will work: "C:\Program Files\IBP-Software\WUFI4\WUFI.exe" -c -f

Thank you for thinking about WUFI improvements
Manfred
Wiss, Janney, Elstner Associates, Inc.
Official WUFI® Collaboration Partner for USA/Canada
Enjoy WUFI® :) .... It is easy and complex.
MikeSW
WUFI User
WUFI User
Posts: 6
Joined: Tue Jan 11, 2011 2:48 am -1100
Location: Germany / Finland

Batch example

Post by MikeSW »

Hello,

I managed to open my Wufi file with a cmd file. However with the command -C after the filename, it does not start any calculation.

Can someone please post an existing batch file that is executing a calculation?

I use WuFi Pro 5.1

Thanks, Michael
Christian Bludau
WUFI SupportTeam IBP
WUFI SupportTeam IBP
Posts: 1161
Joined: Tue Jul 04, 2006 10:08 pm -1100
Location: IBP Holzkirchen, the home of WUFI
Contact:

Post by Christian Bludau »

Hi Michael,

for me this line works:

Code: Select all

 "c:\Program Files\IBP-Software\WUFI5\Wufi.exe" "d:\flat roof.w5p" -c 
Make sure, that the paths are existing and if there is a space in the path, use question marks. See also the online help of Wufi, topic: batch

Best regards,
Christian
MikeSW
WUFI User
WUFI User
Posts: 6
Joined: Tue Jan 11, 2011 2:48 am -1100
Location: Germany / Finland

Post by MikeSW »

Hallo Christian,

danke, jetzt haut es hin.

Grüsse, Michael
MikeSW
WUFI User
WUFI User
Posts: 6
Joined: Tue Jan 11, 2011 2:48 am -1100
Location: Germany / Finland

Post by MikeSW »

Hallo Christian,

nochmal eine kurze Frage zum code für die Batch-Datei:

Wie schreibe ich rein, dass WuFi mehrere *.wp5 Dateien nacheinander berechnen soll?

Hier mein bisheriger code (alles in einer Zeile):
"C:\Programme Arbeit\IBP-Software\WUFI5\WUFI.exe" "D:\Wufi Ripa\101209 - Ripa Varianten\121023-variations A.w5p" "D:\Wufi Ripa\101209 - Ripa Varianten\121023-variations B.w5p" "D:\Wufi Ripa\101209 - Ripa Varianten\121023-variations C.w5p" "D:\Wufi Ripa\101209 - Ripa Varianten\121023-variations D.w5p" "D:\Wufi Ripa\101209 - Ripa Varianten\121023-variations E.w5p" "D:\Wufi Ripa\101209 - Ripa Varianten\121023-variations F.w5p" -C -s

Bis jetzt berechnet er die erste Datei und stoppt dann.

Danke und Gruss,

Michael
Christian Bludau
WUFI SupportTeam IBP
WUFI SupportTeam IBP
Posts: 1161
Joined: Tue Jul 04, 2006 10:08 pm -1100
Location: IBP Holzkirchen, the home of WUFI
Contact:

Post by Christian Bludau »

Hallo Michael,
die batch-Datei muss für jede w5p eine eigene Zeile enthalten...

Code: Select all


 "c:\Program Files\IBP-Software\WUFI5\Wufi.exe" "d:\file1.w5p" -c 
 "c:\Program Files\IBP-Software\WUFI5\Wufi.exe" "d:\file2.w5p" -c 
 "c:\Program Files\IBP-Software\WUFI5\Wufi.exe" "d:\file3.w5p" -c 
Christian
MikeSW
WUFI User
WUFI User
Posts: 6
Joined: Tue Jan 11, 2011 2:48 am -1100
Location: Germany / Finland

Post by MikeSW »

Hallo Christian,

Läuft.

Danke.

Gruss.

Michael
Manfred Kehrer
WUFI International Support Team
WUFI International Support Team
Posts: 351
Joined: Thu Mar 10, 2005 2:17 am -1100
Location: Northbrook, IL; USA
Contact:

Post by Manfred Kehrer »

Hallo Michael,

ich glaube dass der gennante Code keine Sinn macht. Es wird zwar gerechnet, aber keinerlei Ergenisse gespeichert oder exportiert. Darum:

Code: Select all

"c:\Program Files\IBP-Software\WUFI5\Wufi.exe" "d:\file1.w5p" -c -s
Manfred
Wiss, Janney, Elstner Associates, Inc.
Official WUFI® Collaboration Partner for USA/Canada
Enjoy WUFI® :) .... It is easy and complex.
Antonia
WUFI User
WUFI User
Posts: 2
Joined: Sun Aug 04, 2024 6:37 pm -1100

Re: WUFI 4.0.1.208 Batch Help File Recommendations

Post by Antonia »

Hello guys,
Thank you for sharing, I have just started to explore Batch runs. May I ask when to use the Bat. to run, do we need to upload the climate files in advance and save them before running the Bat.? And, can multiply WUFI files run this way? Danke schöne.

Kind regards,
Christian Bludau
WUFI SupportTeam IBP
WUFI SupportTeam IBP
Posts: 1161
Joined: Tue Jul 04, 2006 10:08 pm -1100
Location: IBP Holzkirchen, the home of WUFI
Contact:

Re: WUFI 4.0.1.208 Batch Help File Recommendations

Post by Christian Bludau »

Hi,
the climate file has to be defined in the project before using batch.
Multiple files can be run by defining that in the batch like mentioned above. It can contain one line for each project file or you could code a loop which is automatically starting all files in one folder after each other. Please note: the path of WUFI Pro has changed in the last years.

Code: Select all

 "c:\Program Files (x86)\WUFI\WUFI6\WUFI.exe" "d:\file1.w6p" -c 
 "c:\Program Files (x86)\WUFI\WUFI6\WUFI.exe" "d:\file2.w6p" -c 
 "c:\Program Files (x86)\WUFI\WUFI6\WUFI.exe" "d:\file3.w6p" -c 
Christian
Post Reply