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 ... 6 7 [8] 9 10 ... 62
106
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


107
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

108
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

109
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

110
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

111
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

112
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


113
General Board / Re: ISO 80000-1 Quantaties and Units
« on: May 29, 2017, 06:05:25 pm »
Hi Hans,

if I have done it correctly, it doesn't look like the ISO Library  (ISO 80000-1 Quantities and Units).

Do you see the Quantities and Units? Maybe I've missed something.

Thanks,

Helmut



114
Hello,

the Open Source Addin hoTools (https://github.com/Helmut-Ortmann/EnterpriseArchitect_hoTools) allows you to do this by one click:
- Select Element, Operation, or Attribute on the Diagram
- Click on Feature
hoTools adds a Note which is connected to the selected item.

Kind regards,

Helmut

115
Hi Geert,

thanks for your reply.

Maybe sometimes I stumble over the solution.

Kind regards,

Helmut

116
General Board / Re: Object Diagram
« on: May 16, 2017, 02:34:44 pm »
Hello Uffe,

thanks! It works also for operations.

I wasn't aware of this feature!

Kind regards,

Helmut

117
Hi,

I want to set an EA Property like 'ShowConstraints' (EA.DiagramObject) in C# dynamically / by reflection.

For datatypes 'long' or 'string' it works well by e.g.:
diaObj.GetType().InvokeMember("ElementDisplayMode", System.Reflection.BindingFlags.SetProperty, null, diaObj, new object[] { 2 });

On the first view, it looks as if 'true 'isn't correctly translated to the COM 'true'. I tried 1, 255, 65535, -1, ... - no success.

For datatype 'boolean', I can set it only to 'false' but never to 'true'. I tried a lot - no success. According to the documentation, it should work for COM interop. Yes, setting to 'false', 'reading' works well.

One of my tries:
diaObj.GetType().InvokeMember("ShowNotes", System.Reflection.BindingFlags.PutRefDispProperty, null, diaObj, new object[] { (true });

Any idea, experiences?

Thanks for your help.

Helmut

118
Hi Paolo,

I tried it with Actions in an empty *.eap file. Two new Actions, one rectangle and then:
SELECT ObjectStyle from t_diagramobjects

The difference is:
- ImageID=0;UCRect=1;

Hope it helps.

Kind regards,

Helmut

119
Hi,

yesterday I tried it with C# and EA 13 to change the diagram page orientation from P to L and vice versa.

It worked.

Kind regards,

Helmut


120
Hi,

the described procedure also works for VS2017 and EA13.

Helmut

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