There is no direct way to reverse engineer a CSV file.  However, you can
write a script that would parse the file and determine what each value
correspond to and accordingly create classes and other elements in the model
using REI.

For example, the following simple script would parse the line
"CLASS,A,PUBLIC".

Sub Main
        s$ = "CLASS,A,PUBLIC"
        i% = WordCount(s$)
        MsgBox "'" & s$ & "' has " & i% & " words."

        wordsList$ = "Words in this string:"

        For j% = 1 To i%
                wordsList$ = wordsList$ & crlf$ & Word$(s$,j%)
        Next j

        MsgBox wordsList$       
End Sub 

There is lot of information in the online help for writing REI scripts.

Some example scripts at http://www.rationalrose.com/scripts/index.htm

Hope that helps.

--Sonny




> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 8:08 AM
> To: [EMAIL PROTECTED]
> Subject: (ROSE) Reverse Engineer a CSV file
> 
> 
> 
> 
> 
> I wish to reverse engineer a CSV file into a Rose model. Has anybody
> any experience of this? Is this possible/sensible/feasible? Any advice
> tips etc would be greatly appreciated.
> 
> Thanks in advance
> Andy.
> 
> Consignia plc is registered in England and Wales.
> Registered number 4138203.  Registered Office at 148 Old Street London
> EC1V 9HQ.
> 
> This  email  and  any attachments are confidential and 
> intended for the
> addressee  only.  If you are not the named recipient, you 
> must not use,
> disclose,   reproduce,   copy   or  distribute  the  contents 
>  of  this
> communication.   If you have received this in error, please 
> contact the
> sender and then delete this email from your system.
> 
> 
> **************************************************************
> **********
> * 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
> **************************************************************
> ***********
> 
************************************************************************
* 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