When running example B5 with the gui.mac macro, I get the following error: Some /vis commands (optionally) take a string to specify colour. Available colours: black, blue, brown, cyan, gray, green, grey, magenta, red, white, yellow ***** COMMAND NOT FOUND </gui/addIcon "Open macro file" open /control/execute> ***** ***** Batch is interrupted!! ***** ***** COMMAND NOT FOUND </gui/addMenu file File> ***** ***** Batch is interrupted!! ***** Graphics systems deleted. Visualization Manager deleting... I have had some trouble running macro files with the HandsOn examples. For these, it seems the Geant4 UI cannot find certain command directories. However, I'm not sure if this is the problem for the B5 example since the above problem was reported in the following thread: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/userinterface/99/1/1/2.html. The solution was to use a patch of some sort. Could you send me the patch? Thanks! Jeff
Hello, The macro gui.mac is executed automatically when you have built Geant4 libraries with a graphical user interface driver, eg. Qt. See the code in the main function in exampleB5.cc: if (ui->IsGUI()) UImanager->ApplyCommand("/control/execute gui.mac"); If you try to run this macro interactively from the application built against Geant4 libraries with no graphical UI driver available, you get the error messages as the /gui commands are not available in this case. Can you run the macros exampleB5.in, run1.mac and run2.mac ok? Best regards,