Xwang,

Actually, you can script BRL-CAD via MGED is pretty much any language  
you want.  There is an example on the website that shows the various  
ways MGED can be invoked at http://brlcad.org/wiki/SGI_Cube as well  
as an example Tcl script at the end of the MGED Quick Reference card:  
http://brlcad.org/wiki/Documentation

While it is possible to invoke bash scripts from within MGED, that  
sounds like the wrong way to go about doing things.  You would invoke  
a bash script from *outside* of MGED and have the script call MGED as  
needed.  That said, since your goal is to create an ars primitive,  
what you'll probably want to invoke "mged -c whatever.g in myars  
ars ....." to create the ars, as you suggested, within the script.

Cheers!
Sean


On Sep 14, 2009, at 6:57 PM, [email protected] wrote:

> Hi to all,
> I've been told that I can create my own macro using scripts in brl- 
> cad.
> As far as I've understood, there are two ways:
> 1) create a tlc script
> 2) create a bash script.
> I don't know tlc, while I've done some little bash script in the past.
> What I don't know is if I can call the bash script from inside mged.
> In particular I would like to create a bash script which reads some  
> wing
> data from arguments and generates the wing 3d geometry using ars  
> primitive
> using the mged -c in command.
> Once I have created the script, can I call it from inside mged or  
> should I
> close mged to run the script and then open it again to see the result?
> Thank you,
> Xwang
>
> PS if you have any guide or howto which explain this aspect of brl- 
> cad, can
> you tell me where can I find it?
>
> ---------------------------------------------------------------------- 
> --------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart  
> your
> developing skills, take BlackBerry mobile applications to market  
> and stay
> ahead of the curve. Join us from November 9-12, 2009. Register  
> now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> BRL-CAD Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/brlcad-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
BRL-CAD Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-users

Reply via email to