I appritiate the quick replys yesterday. I still have not been able to get
this to work in 7.14.8 on windows XP. I have a very simple text file(attached)
containing the most common commands we use here in a folder by itself. I have
not created a new database. 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.
---------7.14.8-----------------------------
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.par...@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.
-----------7.12.6---------------------------------
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
---------------------------------------------
________________________________
From: [email protected] [mailto:[email protected]]
Sent: Mon 3/22/2010 10:45 AM
To: User support, suggestions, questions,and comments welcome
Subject: Re: [brlcad-users] Load mged script from command line
I got it to work
Thanks
------Original Message------
From: Christopher Sean Morrison
To: User support, suggestions, questions, and comments welcome
ReplyTo: User support, suggestions, questions,and comments welcome
Subject: Re: [brlcad-users] Load mged script from command line
Sent: Mar 22, 2010 9:56 AM
On Mar 22, 2010, at 9:25 AM, Harris, Rob B NSWCDL G 24 wrote:
> version 7.14.8 for windows.
> I am trying to create a new .g file and load a script from the
> command line. He script file contains simple geometry creation
> commands. In older versions of BRL-CAD for windows the dos command
> was: mged model.g < script.txt
> Is there a similar command sequence for 7.14.8?
Depending on the geometry creation commands, that same command
sequence should still work. Unless a bug was introduced, any
differences should be limited to changes to the commands themselves
(presuming you upgraded from something predating the 7.14 line). If
you're not seeing this, please do file a bug report with more details.
https://sourceforge.net/tracker/?func=add&group_id=105292&atid=640802
Cheers!
Sean
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BRL-CAD Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-users
Sent from my Verizon Wireless BlackBerry
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BRL-CAD Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-users
title Test
units mm
####################################
# Comment Line
##################
in solid1.s sph 0 0 0 20
in solid2.s sph 0 0 0 10
comb comb1.c u solid1.s - solid2.s
regdef 101 0 90 162
# comment
r region1.r u comb1.c
comb_color region1.r 70 70 70
comb all u region1.r
idents test.ids all
tree -o test.tree all
B all
ae 0 0 0
rt -W -w 1024 -n 1024 -o test.pix
q
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BRL-CAD Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-users