Book a Demo

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 - gtschech

Pages: [1]
1
Hi Midnight,

unfortunately, it doesn't.
The projects I am thinking of (working as a consultant, I have seen some of those) are divided in layers. That means the class model shows the whole story (View, Controller, Business, Data Access) vertically in one picture, while the project is organized horizontally (one project per layer). So to display the vertical class diagram and generate the horizontal code, your suggestion does not help; sorry...

2
Suggestions and Requests / Real support for miltplie VS projects per Model
« on: December 12, 2006, 06:27:39 am »
As seen in multiple discussion threads, it is currently not possible to use Sparx MDG for Visual Studio 2005 in a multi-project-Environment.
Typically, a large VS solution consists of a common root namespace (e.g. Company.Project) and every Project holds one sub-namespace (and its descendants), e.g. Company.Project.Common in the "common.csproj", Company.Project.Web in the "web.csproj" etc.
Now I'd really like to have the following:
  • the class diagram in Sparx is organized in my namespace hierarchy (that's possible today)
  • the "Class Model" package has the 'root namespace' set to the value "Company.Project" (that's not possible today)
  • the individual projects are linked to the different packages below "Class Model" (that's possible today)
  • the reverse engineering honors the namespace hierarchy from the "Class Model" node onwards and only creates sub-packages for the descending namespaces (that's not possible today)

So if the "common.csproj" project is linked to the "Class Model -> Common" package, the class "Company.Project.Common.Helper" inside this package would be reverse engineered directly to the "Common" package; the class "Company.Project.Common.Tools.AnotherTool" would imply a sub-package named "Tools" under the "Common" package.

Without this behavior neither forward nor reverse engineering is possible in a significantly big project...

Guenter from Frankfurt/Germany

3
Suggestions and Requests / Re: customize code engineering?
« on: April 03, 2006, 08:13:36 am »
Me 2

Guenter

4
Suggestions and Requests / Re: customize code engineering?
« on: March 29, 2006, 04:01:18 am »
Hi paolo,

now there are those acronyms I wanted to avoid  ;)

I am not sure whether my project deadline will allow me to dig into the PIM/PSM transforming stuff.
From my experiences with EA roundtrip engineering (some years ago I used V4, now V6 for about 3 months) I believe it can be done, but haven't looked into it yet.

It seems like I'm going to live with my adornments in the model and keep the beautifying (i.e. separation of PIM and PSM as well asl round-tripping) to a later project step.

Nevertheless: I'd be glad if you could point me to some helpful discussion of the transformation process (some good keywords for the forum serarch would do nicely, thank you :) )

guenter

5
Suggestions and Requests / Re: customize code engineering?
« on: March 28, 2006, 10:47:19 pm »
bruce & paolo,

I totally agree wiht you that naming standards by themselves do not enforce any quality of code.
In my case the development team has discussed a lot of naming standards (casing, prefixing, naming) and yes, we had some requirements.
Briefly spoken, it's just 2 of them
a) the code must be readable -> variable names should primarily reflect their content or primary use, not their data type or things like that
b) the names should be optimized for IntelliSense, for since I work with VisualStudio.NET, I can't remember having typed a single variable name to it's end before hitting "tab" for autocomplete-ing  :)

Both requirements led us to - as I think - reasonable guidelines.
But one of them is that we feel it should be immediately visible if a variable is a local variable or a class-level variable. Of course, we could have agreed on adding "this.", but isn't that another kind of prefix? (and besides that, it's much longer than "m_"...).
So the coding guys are all satisified, and the only problem is the model.
Even here all participants have the same understanding that coding-specific prefixes should not be visible in the model, so up comes my problem...

Guenter

6
Suggestions and Requests / Re: customize code engineering?
« on: March 28, 2006, 01:30:56 am »
Simon,

thanks for the info about aliases.
I think I'll be using this alternative. Now I'll just have to find out how to modify my document template so it uses the alias in print, but I think that's not really magic...

yours
Guenter

7
Suggestions and Requests / Re: customize code engineering?
« on: March 27, 2006, 03:45:46 am »
Quote
One must wonder what level of higher intelligence is needed to hire code police to make sure that ENTIRELY internal variables declared in code all have EXACTKLY THE SAME prefix.
...
best of luck
Bruce


Bruce,

I cannot fully understand your intention, but to me/us it seems ok to force a policy to prefix all class-level variables with an 'm_' to distinguish between local and class-level variables in code. It simply makes code better readable in our mind.

But nevertheless, I'd like to have my UML model to have just the plain variable names (without prefix), because in UML you can *see* the difference...

@Simonm:
I do not want Sparx to treat two things as the same, but to have one notation in the UML model (without 'm_) and another in the generated code (with 'm_'). IN the respective domains all variable names are unique.

That said, I understand that I will have to live with one or the other side being less than perfect  :'(

Guenter

8
Suggestions and Requests / Re: customize code engineering?
« on: March 24, 2006, 07:55:42 am »
Hi David,

the method I used was to modify the code generation template for C# attributes, where the "m_" is inserted as a literal.
Your suggestion does not work, because I do not want to strip something, but rather insert it duringe code generation, and have it stripped on reverse engineering.

As far as I found, your suggestion does just the opposite...
Am I right?

Guenter

9
Suggestions and Requests / customize code engineering?
« on: March 23, 2006, 11:29:24 pm »
I am using Sparx EA to design C# applications.
My company has a policy thast every class level variable has to start with an "m_" prefix.
For my class model, I would rather have no prefix on each and every attribute just for the sake of C# naming conventions.
I found a way to insert the "m_" prefix inside the "Attribute Declaration" Code generation template, but each time the code generation runs again it deletes the m_ variables and inserts a new set.
I believe this is due to the fact EA doesn't recognize the m_ variables as the ones it generated last time.

Is there a way to get EA to automatically insert and strip the m_ on code synchronisation?

Guenter from Frankfurt/Germany

10
General Board / cannot generate C# interfaces
« on: March 08, 2006, 04:42:31 am »
When modelling in EA, I can mark a class with the stereotypp <<interface>>.
After marking that clas as being coded in C#, I would have anticipated that the code would generate an interface, just as
public interface Idontknow
{
 void InterfaceMethod();
}

but EA generates a class, which is not what I need.
If I change 'class' to 'interface' in the source file, EA does not recognize this code any more and recreates the class.
How and where do I have to set flags so that the code generation actually produces an interface?

Guenter from Frankfurt/Germany

11
General Board / Re: Stored Procedures in EA
« on: May 22, 2003, 12:20:18 am »
I second this motion...

I really like the possibility of reverse (and forward) engineering databases, but I am missing the stored procedures part in it.
We are using the EA for a Web project that interacts with the (MS SQL Server) database only by means of stored procedures, so it is critical to have them in the model.
My current workaround is a class 'StoredProcedures' where I can enter the stored procedures as operations and link them manually to the tables the use (typically, there's a many-to-many relation between SPs and tables).

I'd like to have som means of putting those procedures inside the database and pulling them out again (at least to have the documentation inside my SPs and get the parameters back into the model).


12
Automation Interface, Add-Ins and Tools / Re: Automation and ASP.NET
« on: October 11, 2007, 09:32:18 pm »
nrocha,

the error code suggests that you do not have permission to use the COM interface from within your asp.net app (xxxx0005 almost always means "access denied").

Maybe the account your web app is running under (the app pool identity) does not hav sufficient rights to create COM objects.

You can check that by temporarily (!) replacing the app pool account with an account that has administrative rights on your computer...

Guenter

13
Automation Interface, Add-Ins and Tools / Re: EA 7.0 and clearcase
« on: October 12, 2007, 01:28:09 am »
Michael,

ths xml files are generated when you start the checkin procedure, so you won't find any differences before you check them in.
On the other hand, it should not be a problem, for clearcase is not invoked until the new XMLs have been generated...

Guenter

14
I'd like to use MS Team Foundation Server (2005) as the Source Control repository for our Sparx (6.5) project.

The TFS Source Control, however, requires users to assign every checkin with a workitem to assure that no work is done without a requirement to do so.

Now when I try to checkin from Sparx, I only get an alert saying that I violated the Checkin rule to speicify a work item, but I don't see any dialog where I could select one.

How can I bring up the Checkin dialog (as seen in Visual Studio) from the Sparx checkin procedure?

Pages: [1]