File mttroot/mtt/bin/trans/cbg_m2fig artifact 48f32f827f part of check-in 78c082843d


#! /bin/sh

     ###################################### 
     ##### Model Transformation Tools #####
     ######################################

# Bourne shell script: cbg_m2fig
#
# Causal bond graph:  mfile format to fig file format
# The resultant fig file is the original _abg.fig with
# additional causal strokes superimposed.
#
# P.J.Gawthrop May 1996
# Copyright (c) P.J.Gawthrop, 1996.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
###############################################################


# Remove the old log file
rm -f cbg_m2fig.log
rm -f mtt_info.txt
cp $1_fig.fig $1_cbg.fig


#Inform user
echo Creating $1_cbg.fig

# Use  matrix manipulation to accomplish the transformation
$MATRIX > cbg_m2fig.log  2>> cbg_m2fig.log << EOF

  system_name = '$1';
  system_type = '$1';
  full_name = '';
  thick = 3; length = 250; red = 4; blue = 1; green = 12; font = 18;
  cbg2fig(system_name, ...
          system_type, full_name, ...
          length, thick, blue, ...
          font, green, red);
EOF










MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]