Hi John,

thanks for your reply.

Indeed the (hidden?) properties of the component are "RevEngRootDirectory", 
"RootDirectory", "FilesEncoding" and some more, which can be set by the standard 
property functions for the component (REI
Module class). I found it some time ago the way you found it.

Both root directories are quite easy to set, more tricky is the setting for the files 
in FilesEncoding and as far as I found out, these are a list of filenames where each 
filename is preceded by a
length encoding and followed by a "," and some number and a <CR><LF> pair. By filling 
these values in the component I was successful in parameterizing the ANSI C++ plugin 
and completing the parameters
for the component by scripting.

Nevertheless I got the statement from Rational support (thanks for the good support!) 
that this is NO official interface, but only some setting where I think it can change 
in later versions of Rose (I
use Rose2001A).

Maybe there is some official interface for REI access to some plugins in the future.

Regards

Thomas

"Hsia, John" wrote:
> 
> This is pretty well hidden but it can be done.
> 
> The fields you see in the ANSI C++ custom dialog do map to properties/tagged
> values.  So one way of figuring out which property maps to which custom
> field is to trace it.  I do this by setting the custom field with some
> traceable value (e.g. c:\temp), saving the model file and then searching the
> model file for my value.  For one of the fields you were looking for, the
> trail brought me to:
> 
>             (object module "NewComponent" "NotAModuleType" "NotAModulePart"
>                 attributes      (list Attribute_Set
>                     (object Attribute
>                         tool            "Cplusplus"
>                         name            "RevEngRootDirectory"
>                         value           "c:\\temp")
> 
> So now I know the tool name and the property name (RevEngRootDirectory).
> 
> There's several of things here that could have gotten you hung up:
> 
> 1. tool name is really Cplusplus regardless of the presentation
> 2. property name is also different
> 3. components are referred to in the REI as modules and not components.
> 
> Hope this helps,
> John
> 
> p.s. I'm assuming that you're comfortable with programmatic access of tagged
> values.
> 
> -----Original Message-----
> From: Thomas Loeffler [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 08, 2002 7:39 AM
> To: [EMAIL PROTECTED]
> Subject: (ROSE) Howto change values for ANSI C++ plugin from REI
> 
> Hi,
> 
> does anybody know how to change the settings for the ANSI C++ plug in?
> I know this for the 'normal' values reached by the "Open Specification..."
> Menu of a class or component and then the ANSI C++ tab. But what I do not
> know is how to set the values
>   "Source file root directory"
> and
>   "Code generation root directory"
> which can be set through a right mouse klick on a component and choosing the
> menu "ANSI C++"->"Open ANSI C++ Specification..."
> 
> I think there may a possibility with a variable of type Object and then
> setting some properties of the underlying OLE object, but I cannot find some
> documentation.
> 
> The solution should work with Rose on Unix, too.
> 
> Thanks for help
> 
> Thomas
> ************************************************************************
> * 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
> *************************************************************************

-- 
Thomas Loeffler
mailto:[EMAIL PROTECTED]
phone: ++49 911 526 3423
************************************************************************
* 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