Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - david_wendelken

Pages: [1] 2
1
Suggestions and Requests / Multi-item edit at the same time
« on: November 05, 2005, 01:20:19 pm »

I would like to be able to select a number of same-type items and edit them all with a single edit.

Here's an example of how it would work:

I select a number of requirements and edit their properties.  (Currently, only one of them gets picked for the edit operation.)  I would set the properties that I want to all have the same value, perhaps the stereotype field, or the author field.

Of course, it's not just that simple!
Fields that are unique identifiers would be grayed out, I would not be able to change them, and those fields would not appear on the multi-item property sheet.

Where all the items have the exact same value, that value would display in the field.  Where they did not have the same values, some visual indicator of "different values' would be presented.  (Cross-hatching the field or some such.)


2
Suggestions and Requests / Re: Multi-item delete
« on: November 06, 2005, 02:47:19 pm »
Well, I'm learning C#.Net, VB.Net, ASP.Net, SQL Server and SQL Server Reporting Services at work, and EA at home, so searching thru last year's forums has been low on my list...  ;D

I'll dig for it as time allows.  Thanks!

3
Suggestions and Requests / Multi-item delete
« on: November 05, 2005, 01:21:04 pm »
I would like to be able to select a number of items at one time and delete them with one command.

4
General Board / Re: Can't get artifact's notes text to show in dia
« on: November 04, 2005, 10:30:32 pm »
Thanks!  That solved the problem! :)

5
General Board / Re: Can't get artifact's notes text to show in dia
« on: October 18, 2005, 04:38:02 am »
I'm not sure I found the right thing.

Are you talking about the ability to create a separate note and "park" it inside the object symbol?  Because I couldn't find a menu item by that name.

I already have the text I want - it's in the text field (called notes or details, depending upon the object).  I don't want to have to type the same stuff all over again - or create extra objects to keep track of to hold the text when I've got a perfectly good place to put the text already.

If I've just plain missed it, please let me know!

6
General Board / Can't get artifact's notes text to show in diagram
« on: October 17, 2005, 06:55:20 pm »

I'm trying to get the notes text for an artifact to be displayed in a custom diagram.  I can get the artifact box with a page icon to show up, but not the actual text in the notes field.

Ditto for the details text for an issue or a requirement.

Is there any way to make that show up in a diagram?

7
Uml Process / Need advice on Project Structure with Subsystems
« on: November 05, 2005, 10:46:12 am »
I'm new to the tool.

I'm starting to define a project that includes a host of plug-n-play integrated subsystems.

The overall project has requirements, constraints, business context, etc.

So does each subsystem.

It seems to me that I would want to have identical folder structures to contain these (and similar context) folders within each subsystem, with the ability to drill up or down to the overall project folders.

If I don't separate out the elements by subsystem, they will simply be unmanageable due to their volume.

I'm loath to set up different projects for each subsystem, as they do need to be fully integrated.

1) Is this a good idea?  
2) Do you have a better one?
3) How can I set up identical folder structures within each subsystem without spending hours and hours doing it?   (If I used separate projects per subsystem, I could just set up the template project file.)
Are the automation utilities the only way to go, or can I somehow import or cut and paste them?

Thanks!

8
bump.   ???

9
Ok!

Sorry about the funky indenting in the code below.  It's not the way I entered it, it's just the way it's displaying.

Here's one way that compiles and runs.
Data doesn't get changed.
Syntax gleaned from the sample cs automation file.
Same results with or without the commented out lines:

Code: [Select]

void SetAuthorElements(EA.Package Package)
{
 for( short idx = 0; idx < Package.Elements.Count; idx++ )
 {
    if (((EA.Element)Package.Elements.GetAt(idx)).Type
          == "Requirement"
      )
   {
     ListAdd(((EA.Element)Package.Elements.GetAt(idx)).Name );
     ListAdd(((EA.Element)Package.Elements.GetAt(idx)).Author);
     ((EA.Element)Package.Elements.GetAt(idx)).Author
         = "John Doe";
     // ((EA.Element)Package.Elements.GetAt(idx)).Update();

     // ((EA.Element)Package.Elements.GetAt(idx)).Refresh();

     ListAdd(((EA.Element)Package.Elements.GetAt(idx)).Author);
   }
 }
}


Here's an attempt to cast it into a RequirementClass object.
Why?  If nothing else, once I cast it I don't have to type all the mess above just to reference something!  Plus, the above approach didn't work, so...

Code: [Select]

void SetAuthorElements(EA.Package Package)
{
 // Won't compile.
 //EA.RequirementClass rc = new EA.RequirementClass();
 EA.RequirementClass rc; // will try this instead.
 for( short idx = 0; idx < Package.Elements.Count; idx++ )
 {
   if (((EA.Element)Package.Elements.GetAt(idx)).Type
       == "Requirement")
   {
     ListAdd(((EA.Element)Package.Elements.GetAt(idx)).Name );
     ListAdd(((EA.Element)Package.Elements.GetAt(idx)).Author);
     rc = (EA.RequirementClass)Package.Elements.GetAt(idx);
     ListAdd(Indent + rc.Name);
     //ListAdd(Indent + rc.Author); // Won't compile.
     // Will worry about changing something later!
   }
 }
}

The above blows up with a "Specified cast is not valid." error message.
Oddly, it also blows up if I try to cast it to an ElementClass, which I thought out to work since it can cast to the Element interface.

Now, I'm also new to C#, so it's certainly possible I'm doing a "stupid newbie" trick for God and everybody to laugh at.   :o


10
Ok.  The Element.Type property lets me know what type of object it is.

In the example project, there is a Requirement called FR1 - Utilize existing hardware.

If I open it in the interface, it says it is a "Requirement".
It has a property called "Author".

Now, I've successfully tested for the element type being equal to "Requirement".  It's displaying the correct message for requirements and non-requirements.
So, if it's a requirement, I'm trying to cast the element to a RequirementClass.  It won't let me.
Ditto for Requirement, which seems to be an interface.
(The sample code casts to Element instead of ElementClass.)

I'm also a bit more confused because casting it to an Element interface allows me to view the Author property.
But the RequirementClass doesn't have an Author property!



???

11
I'm new to both EA and C#.

I've gone thru the C# sample code and gleaned how to iteratively loop thru the contents of my project.

I'm trying to update a sample property for each element that  has it.
For learning purposes, I've picked "Author".

I'm having this problem:

How do I know what type of element is contained in a Package.Element?  

I happen to know the first element returned is supposed to be a Requirement.    How do I change it's properties?
I tried casting it into an object of  EA.RequirementClass, but that didn't seem to work.

12
C# would be best, VB 2nd, Java 3rd, I can muddle thru others.

Thanks!

13
Quote
Probably. But I can't imagine how to automate the reconciliation.


I can.    ;D

Quote
To me this is a kind of "sit down, think and do what needs to be done". Due to this think you are lost with automation.


Actually, the trick to it is to do one of the following:

Determine the patterns behind what you would think given a set of circumstances, and automate accordingly, or

Record what you thought as you go (i.e., adding, editing items) in a property of some sort, and automate gathering up and organizing those thoughts later.

Regardless, I'll re-frame my original request to a much simpler case.

I'm looking for an example of an automation interface program that reads thru a list of items in the project repository and adds them to a diagram in that project.

14
Thanks, but we are not communicating.

Let's say I want the following set of pages set up for each project:

Guide to the <fill in blank> Project
   (The above document has a blurb about the project
     and links to the following documents)
Main Business Objectives
Main Business Risks
Main Diagrams
Main Views
Main Models

Now, I'll grant that the stubs for these documents can be included in the base "empty" project one starts with.
I think that's the point you are all making?

But the contents of the stub "Main" documents won't represent the new project, I will have to remember (and take the time) to create links to the new project components in them.    My team mates will (of course!!) forget to do this when they create new project components, so now I'll have a reconciliation problem to resolve in order to keep the guide up to date.

I'm looking for a tool that would automatically add the links to the project components to these stub documents.
Does that make it clearer?

15

I don't see how that's the same thing at all!

Why would I want a copy of some other project's guide in my new project?  So I can re-write all the contents of each page in it by hand?  

That's precisely what I want to avoid doing - I want the advantages of having such a guide without the bother (other than occasionally running a utility) of creating or maintaining it.

Pages: [1] 2