Title: RE: (ROSE) Re: Help on addin

The Unisys addin may or may not store the exported file name someplace in the model ... I don't know.  It's a bit of a long shot but you could export the XMI file, then save the model and search for the filename in the *.mdl file.  If you find it, then they might have stored it under a property somewhere and you could then then retrieve that property.  If you don't find it, you're out of luck. 

If you don't mind the redundancy, you could add the menu option with a rosescript that calls the predefined dialog OpenFilename$() function.  The user would have to respecify the file and you could filter out everything but *.xmi to help things along.  From within RoseScript, you can call your bat file with the Shell command.

If you don't want to create your own add-in, you could just add your menu option to the rose.mnu file in the rose home directory.  Everything stated here (except for the searching the model file for the XMI bit) is documented.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 25, 2002 12:46 AM
To: [EMAIL PROTECTED]
Subject: (ROSE) Re: Help on addin



Not sure if it reached the forum...

Patrick


> Hi,
>
> I am pretty new to Rose.
>
> I have installed the Unisys addin toexport a model to xml. I also have a java
> file that takes this xml file as input to process it to another format. What I
> would like to do now is add a menu option in Rose that starts e.g. a bat file
> (which starts the java program) with as parameter the file name of the exported
> xml.
> I know how to add a menu option and how to start a bat file, but how can I add a
> parameter that takes a filename (preferrably the same file name as used by the
> xml export)?
>
> All help appreciated.
>
> Regards,
> Patrick Vanhoof
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*    http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*    To: [EMAIL PROTECTED]
*    Subject: <BLANK>
*    Body: unsubscribe rose_forum
*************************************************************************

Reply via email to