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

Pages: [1] 2 3
1
Thank you very much!  I'll experiment with it.  :)

2
Hi all,

is there any documentation about how to use the "Resolve Code" feature in EA Validator add-in or does somebody has a Javascript example to share?

At the beginning I would be happy to simply be able to "delete" the selected items. But I don't know if I have to query these items via EA API (and how) or if the script maybe just needs to implement an interface which is then used by the add-in.

Thanks!
Heiko

3
That's it, thank you!  -> MiscData[2] contains the string from the database or an empty string if the value is empty.

I really wonder why this is hidden so well and not worth a dedicated method/property at the EA Element. I wasn't even able to see this MiscData property in Visual Studio Debugger.  ???

4
Hi,

I need some help to figure out how to get the base port element - id or guid - (or whatever helps) of an inherited port element.

I have no idea how to attach screenshots here so let me describe what I did:
 - Create a class with a port
 - Create a part and set the type to that class
The part now inherits the port. In diagrams it can be made visible by checking "Show owned/inherited".  Now it seems that this inherit port gets an individual GUID in the model.

After connecting several of these "parts" I can access connector properties (ClientId, SupplierId) to get to the port element. This always returns the individual GUID of the derived port of the part.  What I need is the base port element - id or guid - doesn't matter.

Is there any property or method how to get it? Tried with Element class but no success for now.

Only solution so far is to get PDATA3 column value via SQL query, e.g. "select PDATA3 from t_object where Object_ID=<inherited port id>" but it makes no sense to do that if I have a "clean" API.

Any ideas?

-Heiko


5
Hi,

I recently observed that our timing contraints in sequence charts look broken. While V15 showed nice arrows from begin to the end of the constraint, V16 only shows the end marker. It looks like   >|    rotated 90° clockwise  (sorry don't know how to quickly add a screenshot).

I can only assume this is a bug since the start of the constraint cannot be identified. For example, having to constraint in a row looks like " {1ms}   >|    {2ms}  >|  ". It is not clear to me if the {2ms} start at the previous message or at the incoming message.

I does not look like in the help anymore https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_languages/changing_the_timing_details.html.

Can somebody confirm this as a bug or feature?

Thanks
Heiko


6
Hi all,

quick feedback regarding the issue: After deleting half of the model and running cleanup/repair the issue is gone for now. To me it looks like EA or any DB-related subsystem cannot handle the size of the model on my PC anymore (model ~25MB, RAM 8GB).  This is not nice and not the ideal solution but fortunately our model contains a lot of old and archived stuff which I can throw away.  ;)

-Heiko



7
The file is stored on local drive (SSD) with no backup / OneDrive or other tool running in the background.

Unfortunately I cannot migrate to .qea since 16.1 is not used by all colleagues and we also use tools which directly read the .eapx file. I'd have to ensure that .qea can be accessed similarly (e.g. using ODBC driver).  However, I will migrate the project and test if I still have this issue and report back.

I can also try to throw old parts out of the project. But the file is only ~21-25MB.  I already worked with bigger models.

8
Sorry for the missing details!

EA Version which I was using where it initially appeared is 15.2.  I upgraded to 16.1 afterwards but still have the same issue.

Unfortunately (from my viewpoint ;)) others can open and modify the same model without trouble. Add-ins are all disabled (opening add-in window also blocks EA btw).


9
Hi all,

I encountered which is somehow related to the EA model file.  When I open the model, go to a diagram or even select an element, EA freezes for around 10 seconds.  Windows also reports "app not responding".  If I wait EA comes back and I can change the selected element.   When I reselect another element same issue again.

I use an eapx File. If you do a project transfer or even if I rename it to .accdb and open it an MS Access and run "Repair and compact" the issue is solved.  Normally the issue is gone.  But this time as soon as I add a few new elements the locks are back.

It must be something with the DB otherwise MS Access would not be able to solve it. Shift+F9 does not report any problems.

Do you have any ideas?

-Heiko

10
Thank you, that worked!

For the zoom issue, I guess I report a bug.  When I change the zoom level, the diagram is marked as modified so I expect that it is some kind of attribute of the diagram.  IMO, this is either useless or not working as intended.

Heiko

11
Hello,

Does anybody know how I can prevent EA15 from opening in composite diagrams in the same tab?  I want a new tab - as before.

Furthermore, when I set the zoom level to something useful, i.e. size view to page, EA does not remember this setting and zooms in again whenever a diagram is reopened.   Can I set the default zoom level somehow?

Thanks in advance
Heiko

12
Thank you for the answers.

The "Is Collection" property does not seem to make a difference. As soon as I change the multiplicity to something else than 1..1 it get an array.  However, I learned that changing "array" to "object" only works because "items" does not seem to apply afterwards which makes the validation successful.  ::)

The reason why I do not want an array is that I use JSON pointers to access the data element, for example "/applications/app_2/permission". It is getting even worse because this identifier can also contain more subelements (like directory structure), e.g. "/applications/group_1/subgroup_1/app_1/..", and I was no able to put that into a clean class model.

I will now try to put this into a well-formed class structure first.

Heiko

13
Hi,

does anybody know how an attribute of a JSON schema element has to look like to get a definition for a list of objects?

What I want is a schema model for something like this:
{
  "applications": {
    "app_1": {
      "path": "/home/my",
      "permission": 100
    },
    "app_2" : 
          ... and so on
  }
}


The related part of the generated schema looks as follows:

  "properties": {
    "applications": {
      "description": "",
      "type": "array",
      "items": {
        "$ref": "#/definitions/Application"
      },
      "uniqueItems": true
    }
  }


Here, type "array" is the problem. If I change it to "object" the JSON file validates successfully.

Sorry, don't know how to attach pictures or a model, so --> https://imgur.com/eks3Qkg

Thank you
Heiko

14
Hi all,

I just stumbled upon a C++ code generator issue where on interface class is generated without the ctor/dtor while another one gets the default ctor/dtors.

Searching for a potential difference, the only one I spotted so far appears in the XMI export. The element which generates "better" has lots of "genoptions" defined.

The element which has the unwanted ctors in the output looks like this:
Code: [Select]
<element xmi:idref="..">[..]
  <code gentype="C++"/>
  [..]
</element>

The good one looks like follows:
Code: [Select]
<element xmi:idref="..">[..]
<code genoptions="nKill=1;nLang=0;sLang=C++;bConstructor=0;bConInline=0;sConScope=Public;bCpyConstructor=0;bCpyConInline=0;sCpyConScope=Protected;bDestructor=0;bDesVirtual=0;bDesInline=0;sDesScope=Public;CHeader=.hpp;CBody=.cpp;JBody=.java;VBody=.cls;VBNetBody=.vb;WFSBody=.vbs;JavaScriptBody=.js;ModelicaBody=.mo;MDGBPSimExecutionEngineExtensionBody=;sAssocName=m_$LinkClass;bGetSet=1;bGenInterfaces=1;JCol=Vector;CCol=[];VCol=Collection;bVMultiuse=1;bVPersist=0;bVDatabind=0;bVDatasource=0;bVGlobal=0;bVCreatable=1;bVExposed=0;sMTS=0;sCRefType=&amp;;sCGetPrefix=Get;sCSetPrefix=Set;sJGetPrefix=get;sJSetPrefix=set;sCSGetPrefix=Get;sCSSetPrefix=Set;sVVersion=6.0;CSBody=.cs;DBody=.pas;bJInnerClasses=1;sJCollection=;sCodePage=28591 (ISO 8859-1 Latin I);sPHPBody=.php;sPHPVersion=5.3;sPHPGetPrefix=get;sPHPSetPrefix=set;ASBody=.as;PyBody=.py;CPPVersion=;ASVersion=2.0;ANSICHeader=.h;ANSICBody=.c;ANSIC_OOSupport=0;ANSIC_NSDLMT=_;ANSIC_RefParam=1;ANSIC_RefStyle=*;ANSIC_RefName=this;ANSIC_ConstructorName=new;ANSIC_DestructorName=delete;CPPCollections=CArray&lt;#TYPE#&gt;_x241F_CMap&lt;CString,LPCTSTR,#TYPE#*,#TYPE#*&gt;_x241F_;CSCollections=List&lt;#TYPE#&gt;_x241F_Stack&lt;#TYPE#&gt;_x241F_Queue&lt;#TYPE#&gt;_x241F_;JCollections=HashSet&lt;#TYPE#&gt;_x241F_Map&lt;String,#TYPE#&gt;_x241F_List&lt;#TYPE#&gt;_x241F_;CPPWrappers=unique_ptr&lt;#TYPE#&gt;_x241F_shared_ptr&lt;#TYPE#&gt;_x241F_weak_ptr&lt;#TYPE#&gt;_x241F_;" gentype="C++"
</element>

Question is, where do all these switches come from? Was it reverse-engineered and added by the importer? 
It looks like options like bConstructor=0; are what I might need but how can I add this from with EA?

Thanks in advance
Heiko

15
General Board / Re: Show provided/required Interface for Port
« on: January 28, 2019, 11:01:04 pm »
In former versions it was Structural Elements. It's gone with V14. Sparxians will probably call it Enhanced User Experience :-/

Is there no replacement for this feature?  I cannot drag the exposed interface of an existing component to the diagram if the component is in a locked package.  With EA 13.5 I can just select it to be visible and I'm fine.

Heiko

Pages: [1] 2 3