#247 dos command line mged error

Modeling (29)

Using BRL-CAD 7.14.8 windows binary install I have the following problem. I am trying to create a new .g database by loading a script file(attached). The previous command sequence was: mged model.g < script.txt Where model.g was the name of the new .g file created and script.txt contained brl-cad commands. The script file is located in a folder by itself somewhere on the local disk I open a dos shell from that directory and input the command below. I tried with and without the -c option. I also put y and nu in the text file itself as input for new .g database and null display respectively. Below the 7.14.8 shell output is the same task successfully executed using BRL-CAD 7.12.6 windows binary install. I am executing this command sequence from within a larger routine so it is necessary that brl-cad be able to execute as a black-box. Any help or workarounds would be much appreciated.
C:\Documents and Settings\rob.harris\Desktop\temp>"C:\Program Files\BRL-CAD\7.14.8\bin\mged" -c test.g <test.txt
BRL-CAD Release 7.14.8 Geometry Editor (MGED)
6/23/2009 1:03:27 PM, Compilation 2
robert.g.parker@ARLAWKLS11267:C:/Program Files/BRL-CAD
Create new database (y|n)[n]? Warning: no database is currently opened!
mged> (nu|wgl)[nu]? attach (nu|wgl)[nu]?
C:\Documents and Settings\rob.harris\Desktop\temp>

For comparison here is what I call using version 7.12. It will create the .g database and load the script.
C:\Documents and Settings\rob.harris\Desktop\temp>"C:\Program Files\BRL-CAD\7.12\bin\mged" test.g <test.txt
You are now editing in 'mm'. 1 mm = 1 mm
Defaulting item number to 102
Creating region id=101, air=0, GIFTmaterial=162, los=90
Input file specified two times.
'cat' is not recognized as an internal or external command,
operable program or batch file.
Summary written in: test.ids
Processed 1 Regions
sort -n +1 -2 -o /tmp/ord_id test.ids
cat /tmp/ord_id >> test.ids


  • Rob

    Rob - 2010-03-23

    brl-cad script file

  • Sean Morrison

    Sean Morrison - 2010-04-06

    Rob, I believe we recently fixed that Windows command-line bug. The fix will be in our upcoming release but there is a workaround that should work for either 7.14.8 or 7.12.6 too. You can run the "source" command:

    C:\Documents and Settings\rob.harris\Desktop\temp>"C:\Program Files\BRL-CAD\7.14.8\bin\mged" -c test.g source test.txt

    That basically runs mged in a "single command" mode, where the command being run causes the file to be read and any commands therein be run. Please follow up and report if 7.16.8 fixes the problem (to be released within a week) and/or if the workaround works for you.

  • Sean Morrison

    Sean Morrison - 2010-04-06
    • milestone: 387263 --> other bug / workaround
    • priority: 5 --> 8
    • assigned_to: nobody --> bob1961
    • status: open --> pending-fixed
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks