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

Pages: 1 ... 23 24 [25] 26 27 ... 36
361
General Board / Re: How to draw a line without connecting any elem
« on: October 28, 2011, 09:38:57 am »
Alternatively you could create some stereo types for boundary that create the lines or arrows you want using shapescripts. You do this via the menu settings>UML...
1. Create a stereotype for boundary called "arrow - right"
2. Assign a shape script to the  stereotype.
Here is a shape script example of an arrow pointing to the right.
Code: [Select]
shape main
{
    startpath(); // Start to trace out a path
    moveto(0,25);
    lineto(0,75);
    lineto(75,75);
    lineto(75,100);
    lineto(100,50);
    lineto(75,0);
    lineto(75,25);
    lineto(0,25);
    endpath();  // End tracing out a path
    // Fill the traced path with the fill color
    fillandstrokepath();
    
    addsubshape("namecompartment", 75,130);
    shape namecompartment
    {
        h_align = "center";
          v_align = "center";
        editablefield = "name";
        println("#name#");
    }
}
Hope that helps :)

362
General Board / Re: Exporting a UML profile
« on: October 26, 2011, 08:59:54 am »
Assuming the Sparx eap file contains the model for creating the profile then look at the instructions for developing a profile.
http://www.sparxsystems.com/enterprise_architect_user_guide/9.0/standard_uml_models/umlprofiles_2.html
If the profile author hasn't left instructions on how to create the profile then your going to have to feel your way in the dark. Pretty much you need to create a stereotype file(s), toolbox(s) and diagram(s) file then combine them into a UML profile.
Hope that helps in some small way. :)

363
General Board / Re: prefix for fields and finalize method
« on: October 26, 2011, 11:18:39 am »
Good question. At first I thought this was going to be easy to answer as in my dim distant memory I thought this was a simple tick box in the options dialog. Perhaps it was in an older version or another tool but when I looked in V8.0 I couldn't find it anywhere at first.  :(

However did find it eventually. Tools>Options>Source code engineering> Attributes/Operations. Change the field m_$LinkClass to simply $LinkClass

If that doesn't work for you then the only suggestion I have is look at the code generation template and change the "Attribute Declaration" and "Linked Attribute Declaration" functions so it generates the fields how you like. It will probably take you a little while to get your head around the template language.

Not sure about what to do on the Finalize() function. Maybe can fix it in the code generation template somewhere but it wasn't obvious where.


364
General Board / Re: How to change the type of an element?
« on: August 17, 2011, 11:18:13 am »
Here are some options for you to consider
A) Manually go through all the elements and change the stereotype. This is probably okay for small numbers but becomes tedious and error prone for large numbers.

B)Export GUID, Name, Stereotype to a CSV File. Use MS Excel or text editor to do a search and replace then import the modified CSV File.  

C) Transfer to an EAP file if its not in that form already. Open in MS Access and open the t_object table,  do a search and replace on the stereotype column. Then transfer back to original format. You can do these transfers via menus Tools>Data Management Project Transfer. This will work for repositories that don't exceed MS Access Database Size Limit.

D) Write a JScript/VBScript using the "Manage Stereotypes Example" as a basis. You can access the scripts via shortcut keys Alt+6.

E) Write some SQL and execute it on the database to search and replace. Noted this is an option already considered.

Hope that gives you some alternatives to think about. Your choice is probably dependent up on skill set you have. The simplest using CSV import/export may be the best option.

Note that objects can have multiple stereotypes so if your not carefully you might end up with the objects having two, the old one and the new one.



365
General Board / Re: BPMN nesting diagrams?
« on: July 15, 2011, 09:35:24 am »
Try right clicking on the element in the diagram and selecting the context menu item Advanced>Make Composite. This will create a child diagram.

To make an existing element reference an existing diagram. Drag the diagram under the element in question in the explorer view. Then do the Advanced>make composite and it should hook up with that diagram so long as its the only one under the element. If there are multiple diagrams I think it hooks up with the first one.

I think a re-engineering of the UI to replace the above menu with "create child diagram" would be more intuitive. Don't think it would be too hard to change either.

Hope that helps
 :)

366
General Board / Re: Capturing process data alongside a process dia
« on: July 14, 2011, 12:22:40 pm »
If you want to calculate costs, time etc. then you could add extra tag values and generate RTF with tables then copy and paste into excel. Maybe add the tag values using a script rather than manually doing it.

To calculate costs of different paths through the process you could use filters. Maybe use keywords or some other field to identify what path the activity belongs and then filter on keywords field. For instance for path 1 all activities have  the value "1" in the keywords. Similarly for path 2 all activities have "2" in the keywords field. Where  activities are in both paths have "1,2". You get the idea ;).

367
General Board / Re: Review work paradigm for experts are non EA-us
« on: July 07, 2011, 10:43:01 am »
Here is some food for thought.
1. Use baselining or version control in EA.
2. Publish the requirements as HTML. When publishing incorporate the feedback mechanism mentioned on the community site. Except provide the feedback on the object rather than the diagram. See URL for more details;
http://community.sparxsystems.com/resources/document-templates/add-diagram-feedback-and-comment-link-html-report
3. incorporate the feedback into the model and do diff on the baseline.
4. Re-baseline or version
4. Repeat steps 2 & 3 until requirements are agreed.
 
Also there are some guidelines on using requirements on the community site you may wish to look at
http://community.sparxsystems.com/whitepapers/business-analysis/requirements-management-enterprise-architect

Hope that helps  :)



368
General Board / Re: EA 8 - doc generator + dynamic templates
« on: June 30, 2011, 08:44:01 am »
To use different templates for different packages try looking at master and virtual docs.
http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/report_generation/create_master_document.html

 :)

369
General Board / Re: Data Model - field value definitions
« on: June 30, 2011, 08:34:22 am »
Enumerations are simply a set of values that can be selected. When modelling you can use the relationship between a class and the enumeration so you can choose the usual multiplicity options. For instance 0..1, 0..* etc.

So when you need to choose from a list with multiple selections choose the appropriate multiplicity.
0..* for multiple selections.
0..1 for single selection.

Easy eh?  ;D

370
General Board / Re: Data Model - field value definitions
« on: June 29, 2011, 07:22:14 am »
For predefined data sets then use enumeration and add each value for the data set in the enumeration.
See an example here;
http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/modeling_languages/addingenumerationstagstost.html

Alternatively you could put in the description some text like Backus Noir Form;
"[Red|Yellow|Green]"
http://en.wikipedia.org/wiki/Backus%E2%80%93Naur_Form

or you could use OCL in the constraint tab of the attribute
http://www.omg.org/spec/OCL/2.2/PDF/

So there are some options. It all depends on how you want to use it.

Hope that helps  :)


371
General Board / Re: How to escape special characters in model sear
« on: June 14, 2011, 07:07:57 am »
If you have an EAP file then underneath its MS Access DB so use square brackets "[]". For instance searching for an Element named "MyElement?" you would enter "MyElement[?]" without the quotes into the search field.
It might be different with a SQL Server or Oracle DB repository. I Didn't have one at hand to try it out. Think it you might need to use a forward slash "\". Suggest you Google "SQL Server wildcard search" or whatever database you use to check.
Hope that helps.  :)

372
General Board / Re: Alternate to EA RTF generator
« on: June 10, 2011, 07:03:12 am »
As an alternative if you use SQL Server for a repository you could consider using SQL Server Reporting Services.  If you use SQL Server Express Edition is its free. :)

373
General Board / Re: Using Sparx to manage a Standards Information
« on: June 01, 2011, 11:40:42 am »
We have an SIB based on TOGAF in EA. We imported the information using CSV rather than typing it all in.
The trick is create a dummy standard first and then export to CSV file. Copy and paste the TOGAF fields into the relevant columns and import into an EA model. You will need to create the packages required to group the standards together for the TRM the move the Standards into the relevant package.
Hope that is the information you were after. :)

374
General Board / Re: EA 9 Beta
« on: March 08, 2011, 02:56:33 pm »
Skiwi,
Great to see you testing out Version 9 Beta however is posting all the problems you find here the best place for Sparx Systems to deal with them or is there a better place?

Being picky I note the footer on your posts says
Quote
Using EA8.0 (864) on Windows XP SP3. Repositories in SQLServer2005 & Access2003/JET4.0
Isn't  quite right if you are testing V9.0 is it? 

:P

375
General Board / Re: EA 9 Beta
« on: March 04, 2011, 12:04:41 pm »
Look again Graham, it mentions the following;
"Improved Document Template Design and the ability to output documentation to PDF. "

Pages: 1 ... 23 24 [25] 26 27 ... 36