"Savoy, Elizabeth S" <[EMAIL PROTECTED]> writes:
> 1)  I created a facet with a Tcl script star which calls a tcl file with one
> of the following lines (I'm not sure what $name should be):
>       set myOctHandle [ptkOpenFacet /home/savoy/testFacet.TclScript]
>       set myOctHandle [ptkOpenFacet *this]
> result:  "invalid command name ptkOpenFacet"

That seems like it should work --- not sure why you got that failure.

However, it's unlikely that you want to manipulate Oct handles from
within a star's script, anyway.  By the time the star gets to run,
the Oct facet has been compiled down into a set of Ptolemy stars and
will no longer have any effect on the progress of the simulation.

My guess is that you need to do whatever you have in mind by adding
code to $PTOLEMY/lib/tcl/ptkControl.tcl ...

                        regards, tom lane

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to