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 - Simon M

Pages: 1 ... 389 390 [391] 392 393 ... 424
5851
Call SetClassifier().  This takes the ID of the class that is the type, you probably need to call both.

5852
That's pretty much right Geert.

Update is a save.  You basically need to call it when you've finished changing something.  Also, there are some things that you can't do with a new object until it is saved.  So it is easier to save it immediately after it is created.

Refresh doesn't actually save anything.  What it does is updates the in memory representation of a collection from the database.  So if you've added an attribute, or removed one and you want to iterate over the attributes again, you will need to call it.

5853
Don't include the array definition in the name.  You may only be able to generate that code from an attribute instead of an aggregation.

5854
It's happening because EA is looking for an attribute named 'aggregates[10]' in the code.  It doesn't find one (because it finds 'aggregates').

5855
Each class in the model stores the path to its file.

In order to get EA to use the new workspace you will need to update the filename of each class.  This can be done using the dockable properties window.  (View | Properties)
 
A bulk update of class filenames when a directory path has changed can be made using local paths (See http://www.sparxsystems.com.au/EAUserGuide/index.html?localpaths.htm) as follows.
 
Open the local paths dialog. (Settings | Local Paths) In the path field enter the path that EA currently thinks your files are at, or part of it.
In the ID field enter something like "Source_Path".
In the type field select your source code language.
Click "Apply Path"
This will substitute the path you entered for the ID in all classes containing that path.
Edit the path field to your new path.
EA will now find the files in their new paths.
If you want to you can now click "Expand Path" and then delete that path.
That will remove the relative paths that were created before, setting them back to absolute paths.

5856
Attribute constrains are not currently accessible from the code templates.

5857
The solution I can give you is an MDG technology file that adds support for your macros to our code parser.  It will be specific to your situation, although I have written similar scripts before.

The reason why we are doing it this way is that for various reasons we are unable to support users modifying the import (in this way or any other way).

5858
Contact Sparx Support directly with concrete examples of the macros you want expanded.

We can help you.

5859
In your install directory is a C# code sample.

5860
1. Set as default isn't the default datatype, it's actually the default language for the model.  (Either code or database).  It doesn't appear in t_datatypes.

2&3. Don't know if or when these are used.  Any columns that are unused may be used by EA at some point in the future, and we can't guarantee what will happen if you have custom data in the column when that happens.

5861
I've posted C# examples several times to this forum.

See http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1207649029/1#1 for one of them.

5862
Just quickly, Oliver is exactly right.  That's what Sparx Systems recommends (and does internally) for sharing searches.

5863
EA provides functions to convert your notes to the format you want.

Look at Repository.GetFormatFromField.  Pass in one of "HTML", "RTF" or "TXT" as the format.  EA will give you the notes in that format.

5864
You can define a tagged value type such as a dropdown without defining a profile.

In Settings | UML | Tagged Value Types.

Look at http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/predefinedtaggedvaluetypes.html.

Once set up and used, you can do search/report on them.

5865
Reference for the available keywords in the code templates is at http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/fieldsubstitutionmacros.html

It would certainly be possible to do using the code templates.

Pages: 1 ... 389 390 [391] 392 393 ... 424