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 - Helmut Ortmann

Pages: 1 ... 5 6 [7] 8 9 ... 62
91
Hello,

The SPARX answer:
This is a known issue which is yet to be resolved.

Helmut

92
Thanks for the answer.

I'll file a bug report.

Best regards,

Helmut

93
Hello,

I try to auto name newly created  Requirements with the EA Broadcast Event 'EA_OnPostNewElement'. It mostly works as expected.

When I add requirements, e.g. Functional Requirments, with the Specification Manager EA don't send the Broadcast Event 'EA_OnPostNewElement'.

Any idea?

Thanks for your help!

Helmut

94
General Board / Re: Autonumbering on stereotype level
« on: June 23, 2017, 07:58:15 am »
Hi mrblack12,

here are a lot of people who want their special solution - for a thank you - maybe.

Here are also a lot of engaged persons who invest their leisure time to answer questions, share their knowledge, develop scripts and presents useful Add-Ins. For nothing!

I think you are working for a company which will profit. If your company is really interested in a solution, get some money and make a little open source project.

In this Forum you'll find people to realize your dreams. Be aware: A general solution beyond "FR-" is some work and not just 10 lines of code.

Please appreciate the great help you get here for nothing. Personally, I don't like remarks like 'The only reply I got..'.

Helmut








95
Automation Interface, Add-Ins and Tools / Re: Publishing Add Ins
« on: June 21, 2017, 11:03:13 pm »
Hello,

a good source is Geerts tutorial on the EA community:
http://community.sparxsystems.com/tutorials/572-44create-your-first-c-enterprise-architect-add-in-in-10-minutes

Kind regards,

Helmut

96
Uml Process / Re: How to use IBD and properties
« on: June 21, 2017, 10:22:17 pm »
Hi Mark,

I have just redone it. It works. I have done it this way:
0. Create Block Definition Diagram with:
1. Create Block 3
2. Create Block 1 + Block 2 as composite part of Block 3
3. Make Association between Block 1 and Block2
3. Name the Association 'MyAssociation'

4. Create Internal Block Diagram from Block 3
5. Drag Block 1 as Property into Diagram (new)
6. Drag Block 2 as Property into Diagram  (new)
7. Make Connector between Properties of Block1 and Block2
8. Right Click on Connector,  Advanced, Set Connector Type
    You can select an Association from BDD or 'none' for the connector in IBD

You may use multiple Associations and connectors. The usefulness is in your responsibility.

Kind regards,

Helmut



97
Hi TheMintRubber,

I checked your Code. It works as expected if I add the below code.

Code: [Select]
public class EAAppInstance
{
public EA.App EaApp { get; }
public int ProcessId { get; }
public EAAppInstance(EA.App eaApp, int processId)
{
EaApp = eaApp;
ProcessId = processId;
}

}

I think the effect is similar to the EA DLL 'SparxSystems.Repository.dll'. This SPARX DLL get's the repository from the passed EA process id and was first released with EA 13. I think this DLL also works for older EA releases, but I'm not sure about.

Thanks a lot for sharing your code. It also gives me an inside how such things work.

Kind regards,

Helmut


98
Hi,

I doubt that EA is a good solution to simulate a business decision.

In my experiences, EA is top in understanding and discussing complex coherences. With this profound knowledge you gain from modeling and discussion, you can develop a simulation. Often it's a good idea to simply use Excel.

Maybe I have missed the point.

To get a quick understanding what you can achieve with EA you may have a look on the SPARX Webinars or whitepapers.

Kind regards,

Helmut


99
Hello,

the simplest way is just to change the C# template. Drawback C# means GO.

You can also create a new template with the Code Template Editor by:
- Click on New Language
- Click on Add product
- Insert something
EA adds a new language.

Then you can manually copy C# content to GO content. You may use Reference data for *.xml import/export of the changed templates.
See: http://www.sparxsystems.com/enterprise_architect_user_guide/13.0/model_repository/exportrefdata.html for the basics.

You may slightly change the C# Templates, e.g.insert a dot, export to *.xml, tinker with *.xml and import as GO.
See: http://www.sparxsystems.com/enterprise_architect_user_guide/13.0/model_repository/exportrefdata.html for the basics.

Maybe there is another possibility to easily copy a Code/Transformation template.

Kind regards,

Helmut

If you just do it once make it by hand. It's half an hour and you are done.

Kind regards,

Helmut


100
Hi Paolo,

The DiagramObject you can get by GetDiagramObjectByID (long ID, string DUID). See: http://sparxsystems.com/enterprise_architect_user_guide/13.0/automation/diagram2.html

For DiagramLink you have to run through the collection DiagramLinks. I have made a function once and then call it.

Kind regards,

Helmut

101
Suggestions and Requests / Re: Intellisense in the DB Builder Queries
« on: June 19, 2017, 01:06:55 am »
I support it. It's always a good idea to make entering text as easy as possible. 

Intellisense makes live a lot easier.

Kind regards,

Helmut

102
Hi,

if you develop C# according to EA Hybrid Scripting you can use the 'SparxSystems.Repository.dll'.

'SparxSystems.Repository.dll' has the possibility to load the EA Model according to the process-id of the EA Instance in a C# environment.

At http://community.sparxsystems.com/community-resources/1065-use-c-java-for-your-vb-script
you see an Example for C#. In that case to call C# from VBscript in EA and get the correct Repository in C#.

Kind regards,

Helmut

103
Hi,

GO isn't supported out of the box by EA.
See: http://sparxsystems.com/enterprise_architect_user_guide/13.0/model_domains/languages_supported.html

You can add a new language for forward generating with the Code Template Editor (see: file:///C:/Program%20Files%20(x86)/Sparx%20Systems/User%20Guide/model_domains/thecodetemplateeditor.html).
But be aware it only supports forward generating. For reverse engineering (from Code to Model) you have to stick to the EA supported languages or define your own languages with the Grammar Framework (see below).

Also be aware defining your own language is a lot of work and needs experience.

If you only want to forward generate Code from a Model, you have the two options
- Code Template Editor as mentioned before
- Make your own generator with an Add-In or Script (I would prefer Add-In)
 

You can use the grammar framework to define your language. I've no experiences with it.
http://sparxsystems.com/enterprise_architect_user_guide/13.5/model_domains/grammar_editor_for_imported_co.html

Kind regards,

Helmut

104
Hi Imunday,

in principle it's possible with:
- Addin
- Script


You have to modify the column  'Geometry'  in table  t_diagramLinks like (there is also an API, I think):
LMB=CX=21:CY=13:OX=-105:OY=-97
LRT=CX=20:CY=13:OX=-108:OY=-184

The crux is that the X and Y values are relative to the target and therefore you have to calculate them if you want to apply your scheme (source). No absolute value will do the job.

You can play with a diagram and the SQL Query:
'
  • select Geometry from t_diagramLinks
'
in a Project with just one control flow to see how it's working.

Kind regards,

Helmut

105
Hi,

with the open source hoTools you can change Style/Appearances/Compartments for:
- Diagrams
- Nodes on Diagrams
- Connectors
See WiKi:
https://github.com/Helmut-Ortmann/EnterpriseArchitect_hoTools/wiki/DiagramGeneralStyles

You can configure your styles in Settings.json and apply it by Click to:
- Selected Package, Element, Diagram, Diagram-Elements + Connector
- Recursive from the selected package

Scaling a diagram to one page works for me with: "PPgs.cx=1, PPgs.cy=1, ScalePI=1"
See:
https://github.com/Helmut-Ortmann/EnterpriseArchitect_hoTools/wiki/DiagramStyles#Example

The WiKi also shows a lot of possible configurations you can set by Script/Addin or hoTools.

Kind regards,

Helmut


Pages: 1 ... 5 6 [7] 8 9 ... 62