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

Pages: [1] 2 3 ... 5
1
General Board / Re: Print diagram in Specification Manager view
« on: May 27, 2021, 07:59:20 am »
Same question. Any suggestions?

2
General Board / Re: Changing [default] directions in associations
« on: July 09, 2020, 05:36:58 am »
Many moons gone by. Anybody know where Tools|Options|Links|General|Association default is in the ribbon?

3
General Board / Re: Class instances don't show attributes
« on: November 22, 2019, 07:22:14 am »
Same question in 2019, except the UI has changed and it does not work like a charm. Right-click->Features->Set Run State.
Tried:
1. Setting some values for variables inherited from class. Tried matching and not matching. Does not create attribute on object.
2. Tried creating a new variable in Set Run State. Problems are:
a) does not show up as attribute on object.
b) cannot be deleted.

????

4
Answer From 'Eve'
"You can't create an EA.Element. (Which is {72BF2E28-5DF4-4BD8-80D0-80C62BD9A026})
You get one from one of the API calls.
Eve
[email protected]
=====

5
Thanks to Uffe for the wisdom and encouragement.  Working in Visual Studio 2019, I believe i have made all approrpriate preparations.  I have unregistered and re-registered my dll.  Again, it runs, but fails when referencing Interop.EA.
===What else I tried====
A) rebooted the client machine. Exact problem referencing the missing GUID.

==Next..====
- Might will try to unregister and re-register Interop.EA.

6
This could have something to do with the OS.  I'm running Windows 10 (64 bit), and it seems that the EA dll was complied as Win32. Thoughts?

7
==ERROR CONDITION===
Every time the my add-in code hits a line with a reference to Interop.EA.dll, I get this error:

"Retrieving the COM class factory for component with CLSID {72BF2E28-5DF4-4BD8-80D0-80C62BD9A026} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))."

==SPECS===
Running Sparx EA 15.0.1513.  Build on Visual Studio 2019.

MyClass.dll is in the registry and exists as valid Add-in within EA.
Code has  event handler for EA_OnPostNewElement.
Registry does NOT have that CLSID {72BF2E28-5DF4-4BD8-80D0-80C62BD9A026}.
Studio reports the GUID for Interop.EA.dll as {64FB2BF4-9EFA-11D2-8307-C45586000000}
In registry, found bunches of Interfaces with reference to {64FB2BF4-9EFA-11D2-8307-C45586000000}.

===CODE===
Here's the SIMPLIFIED code. Again, exception happens on first reference to EA library.

Function OnPostNewElement (Repository As EA.Repository, Info As EA.EventProperties) As Boolean
        MsgBox("hello")
        fred()
End Function

Private Sub fred()
        MsgBox("hello3")
        Dim e As New EA.Element
 End Sub

=====WHAT I TRIED=============
1) I tried re-registering as follows:
C:\Windows\Microsoft.NET\Framework\v4.0.30319> regasm.exe "C:\Program Files (x86)\Sparx Systems\EA\Interop.EA.dll" /verbose
Microsoft .NET Framework Assembly Registration Utility version 4.7.3190.0 for Microsoft .NET Framework version 4.7.3190.0
Types registered successfully

2) Then,...
- I tear down, re-build, and re-register my dll.
- I get the same error no matter what I try.  Can't find {72BF2E28-5DF4-4BD8-80D0-80C62BD9A026}

Any ideas out there? Thanks in advance.

8
Similar problem.  Running Sparx EA 15.0.1513.  Build on Visual Studio 2019.
MyClass.dll is in the registry and exists as valid Add-in within EA.
Code has  event handler for EA_OnPostNewElement.
Every time the code hits a line with a reference to Interop.EA.dll, I get this error:

"Retrieving the COM class factory for component with CLSID {72BF2E28-5DF4-4BD8-80D0-80C62BD9A026} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))."

Registry does NOT have that CLSID {72BF2E28-5DF4-4BD8-80D0-80C62BD9A026}.
Studio reports the GUID for Interop.EA.dll as {64FB2BF4-9EFA-11D2-8307-C45586000000}
In registry, found bunches of Interfaces with reference to {64FB2BF4-9EFA-11D2-8307-C45586000000}.

Here's the SIMPLIFIED code. Again, exception happens on first reference to EA library.

Function OnPostNewElement (Repository As EA.Repository, Info As EA.EventProperties) As Boolean
        MsgBox("hello")
        fred()
End Function

Private Sub fred()
        MsgBox("hello3")
        Dim e As New EA.Element
 End Sub

=====
I tried re-registering as follows:
C:\Windows\Microsoft.NET\Framework\v4.0.30319> regasm.exe "C:\Program Files (x86)\Sparx Systems\EA\Interop.EA.dll" /verbose
Microsoft .NET Framework Assembly Registration Utility version 4.7.3190.0 for Microsoft .NET Framework version 4.7.3190.0
Types registered successfully
==Then,...
- I tear down, re-build, and re-register my dll.
- I get the same error no matter what I try.  Can't find {72BF2E28-5DF4-4BD8-80D0-80C62BD9A026}

Any ideas out there? Thanks in advance.

9
Bugs and Issues / Re: Failed to initialize JScript Engine
« on: November 05, 2019, 05:16:30 am »
I have same problem here years later.  I downloaded latest debugger from WIndows 10 SDK (just the debugger only).  I am totally lost. Please help.

10
General Board / Re: model IDEF0
« on: December 29, 2017, 02:03:37 am »
Sparx EA does not really support IDEF0, because..

*In Sparx, a line MUST connect two boxes*, whereas IDEF0 ICOMs have only one connected end, except for transitions (which are at once an output and input).

 ICOM arrows are objects, but Sparx uses boxes (i.e. classes) for objects. 


I have created a form of IDEF0 using MDG, but it's tortured.

The beauty of IDEF0 is that you can use a very simple set of shapes to convey a ton of information in a very small space.  You really cannot do that if you have to create a box for ever object.

Don't really see a way of doing this in Sparx without a major deviation from the core program model.
 :(

11
Situation is actually worse than I thought.
Given: actor has relations to components, Organization, Requirement, and Reference

1. Don' filter. Check all Element Types
2. Click Refresh
Only requirements and references are in list.

I'm sure that's the tip of the ice berg. Seems that logic is hard to predict and recreate situations.

12
1. Highlight an item with relations.
2. Right-click and choose "Insert Related Items".
You should see the related items.
3. Click Refresh button.
BUG: list of relations has one less item than before.

If you filter to where there will be only 1 item in the list, the list will be empty, making the bug seem worse than it is.  I have no idea how much rework this has cost me, but it's a lot.  I've been thinking that after filtering I had all the items, and did not verify. Ugh.

13
Thanks to all of you and especially Simon for the solution.

14
General Board / Set Default Line Style?
« on: March 31, 2017, 08:58:40 am »
I suspect that this can be done, but I haven't found it yet. I want to make all Information Flows be "Orthogonal Rounded" every time I create one.

15
No, Qwerty, I don't want fixed aspect ratio.  Geert has the right idea.. I just didn't implement well.  I know it can be done from left to right, but not sure about left to right and top to bottom. We shall see when i get some time.

Pages: [1] 2 3 ... 5