Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: hoemmele on October 08, 2008, 03:30:59 am

Title: new class comes preset with methods and attributes
Post by: hoemmele on October 08, 2008, 03:30:59 am
Hi,
when I add a new class, using toolbox->class and click into a class diagram, the new class is not empty but comes preset with methods and attributes is if it was a copy of an existing class (in my EA project).
The class from which the methods and attributes are copied to my new class is always the same one (but randomly picked in the first place).

When I use Project->Add element->class I get a new, empty class as expected.

What am I doing wrong, or what is special about the toolbox here ?

Thanks, Lars
Title: Re: new class comes preset with methods and attrib
Post by: floerio on October 08, 2008, 04:14:12 am
Hi Lars,

the elements in the toolboxes can be configured (via MDG). With this one can define initial values, tagged values etc.

Could it be that you use an element from one of the "special" toolboxes?

Regards,
Oliver
Title: Re: new class comes preset with methods and attrib
Post by: hoemmele on October 08, 2008, 04:45:19 am
Hi Oliver,
I use 'class' from the UML toolbox, I think this is standard or default for class diagrams. I'm new to EA, and I have not yet (knowingly) defined any properties for toolboxes or toolbox elements.

I just reverse-engineered a couple of C++ header files, arranged my class diagrams and need to create more C++ classes now.

What's remarkable is that EA seems to create a copy of an existing class (only with a new name 'class1' ) instead of an empty one.

regards, Lars
Title: Re: new class comes preset with methods and attrib
Post by: Takeshi K on October 08, 2008, 07:49:30 am
Hi Lars,

The Template package feature may be active.

Select Settings | Template Packages from the Main menu and select '<none>' in the Browse Project dialog.

the Template package feature will be disabled.


Hope this helps.

--
t-kouno
Title: Re: new class comes preset with methods and attrib
Post by: hoemmele on October 08, 2008, 08:01:41 pm
Hi t-kouno,

yes, thanks.

Cheers, Lars