Indeed there seems to be a bug here...
When I do "Save Actor In Library" on an actor, I get
the library file opened ( ~/.ptolemyII/UserLibrary.xml),
but the actor is not in it. Strangely, the actor is
in the UserLibrary in the actor library menu. But
why aren't these two the same thing?
I'll look into it, unless anyone else knows offhand what's up...
Edward
At 01:30 PM 8/4/2005 -0700, Reilly, Timothy (MN17) wrote:
I have spent a lot of time with this library stuff the last two days and I
am pretty confused.
I use utilities composite actor on a sheet. I change the name of
composite actor to radar_if. I then open a new sheet and open my model of
radar_if, the guts of the radar_if composite model. I copy what is in
this sheet, look inside the composite actor radar_if, and paste what was
in the radar_if model into the inside of the composite actor radar_if. I
then close the sheet with the model of radar_if , close the sheet of the
composite actor radar_if. I now have a sheet with a compsite actor
radar_if, all the right ports and names, and additionally the composite
actor is in the userlibrary. So far so good. For good measure I save the
new composite actor as radar_ifcomposite. I then highlight the composite
actor and click save actor to library, it says the actor is already in the
library. The timestamp on userlibrary is usually within a minute of all
of this. I shut down Ptolemy, restart and the library I just made is not
visible, and if I load the library UserLibrary.xml in my directory
(C:\Documents and Settings\E223049\.ptolemyII) it is empty. It looks like
this:
<entity name="UserLibrary" class="ptolemy.moml.EntityLibrary"/
It is like the UserLibrary does not actually get written, although some
write happens because the timestamps are about right. What is going
on? Please help me with this. I guess I can just load my composite actor
separately. That is starting to look pretty good to me.
Thanks,
Tim
------------
Edward A. Lee
Professor, Chair of the EE Division, Associate Chair of EECS
231 Cory Hall, UC Berkeley, Berkeley, CA 94720
phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
[EMAIL PROTECTED], http://ptolemy.eecs.berkeley.edu/~eal
----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: [EMAIL PROTECTED]