Nothing really obvious. You might try searching the mdl file to see what the name of the property really is. Do this by enterring in some value (e.g. XXX) that you can search for. Save the model and then search on that same string. Is it the same tool name you expected?
-----Original Message----- From: Brian Mclean [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 3:01 AM To: 'ROSE_FORUM' Subject: (ROSE) REI: getting properties Hi Using VB, I am creating new classes from external information and creating attributes for the new classes. In the model, both the class and the attributes have a property tool called "OurOwnTool". Both appear to be correctly set up. When setting properties for the new class I use the following code: Set oProperties = newClass.GetAllProperties For i = 1 To oProperties.Count Set oProperty = oProperties.GetAt(i) If oProperty.ToolName = "OurOwnTool" Then If oProperty.Name = "Description" Then oClass.OverrideProperty "OurOwnTool", "Description", "New Description" End If Next i This code works 100% and I always find properties with Toolname "OurOwnTool". However, for the new attributes, using similar code, I can't find any properties woth Toolname "OurOwnTool", although I can see the tool in the model. Any ideas what the problem may be? Brian McLean Rubico (Pty) Ltd - The Business Component Company Tel: +27 (11) 808 1000 Direct: +27 (11) 808 1298 Cell Phone: +27 82 669 5548 http://www.Rubico.com ************************************************************************ * 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 *************************************************************************