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 - Sébastien Jahan

Pages: [1] 2
1
Bugs and Issues / Re: Diagram images embedded in XMI
« on: June 14, 2011, 05:20:31 pm »
Nevermind, we were looking for the images at a totally wrong place ;)

2
Bugs and Issues / Diagram images embedded in XMI
« on: June 08, 2011, 05:32:40 pm »
Hi,

I would like to check if someone encounters the same problem or if it is just us.
We're trying to export some stuff from EA using the native XMI export feature. We tick the "Generate Diagram Image" option, but there is no images generated :(
I were told that this option worked on EA 7.1, but the whole enterprise upgraded to 7.5 or 8.
With both of these versions, this doesn't work as expected.

Could it be related to the middleware .Net? As we run on Windows 7, this automatically upgrades, so we must run on the last release.

Thank you very much by advance,

SJ.

3
Thank you very much Geert, that made the trick!
I moved my call to addTab only when EA detects a project is loaded and it seems to work great now!

Have a very nice day and thank you again for your help,

SJ.

4
I'll try that but i'm not using the OnContextItemChanged event. The only thing we're doing is

public String EA_Connect(EA.Repository Repository)
            {
            m_RepositoryView = Repository.AddTab("OEA Browser", "OEA.TestPan") as UserControl;
                  return "OEASparxConnector.AddIn started";
            }

OEA being my namespace, and TestPan a classic UserControl (that does nothing except displaying a empty text field and a button). What is odd is that this kind of code works on another computer, that's quite confusing  :-/

5
Nothing about addTab? If you prefer, i can create a thread on that topic. That's quite annoying, i really don't understand why it works on my boss computer (EA 7.5) and on my dev and test environment (EA 8), it crashes :(
On my dev env, i'm using Visual Studio, so if i'm not wrong there is no COM register issue liely to happen, right?

6
Hi Geert, hi Mithal.

I have the same problem Mithal encountered with the addTab, i get an AccessViolationException telling me that i try to access some protected memory.

Repository.AddTab("OEA Export", "Export.TestPan");
TestPan is a UserControl, and Export is the namespace of the class.
Is it the right syntax? How could i go through this problem?

Thank you very much by advance,

SJ.

7
Hi,

Here is my case: I'm using the importXMIPackage() method to import in my project some XMI.
The target package I pass in parameter to the function is the default model package of the project (created with an empty project).
If i import through Sparx EA, (right click on the model package, import XMI, etc.), i get a popup that asks me if i want to create another model package.
The problem is that i do not have this feature when i import the XMI using the importXMIPackage(), and my XMI's model package is imported under the default model package.

Is there a way to create a model package through the importXMIPackage() function? I assume there should be some way to pass to the function a node "above the model package" but i don't know how to do it.

Thank you very much by advance,

SJ.

8
Automation Interface, Add-Ins and Tools / Sparx EA XMI 2.1 Schema
« on: December 09, 2011, 03:02:56 am »
Hi,

I'm working on something that could parse and try to understand XMI.
We're using XMI 2.1 from the Sparx export module, but the format is quite complex and it seems it can vary according to the type of entity/relationship...

I would like to know if there is some place where i can find a DTD, or a XSD, or anything that can show me the full schema of the XMI 2.1.
To make sure i don't forget some cases, since i'm working on some data but i doubt it's using any entity/relationship type...

Thank you very much,

SJ.

9
Automation Interface, Add-Ins and Tools / Re: Get icons though API
« on: December 08, 2011, 09:36:36 pm »
Thank you very much for your answer Geert!

That's fine by me, just wanted to know if there is some "cleaner" way to do it, but this way is not a problem if this works at the end!

Have a nice day!

SJ.

10
Automation Interface, Add-Ins and Tools / Get icons though API
« on: December 08, 2011, 08:29:16 pm »
Hi,

I'm currently developing a browser for a model repository.
I would like to know if this is possible to get the icon according to a uml type i could pass, so i could insert these icons in my browser near the label of each object.
Is this possible?

Thank you very much,

SJ.

11
Automation Interface, Add-Ins and Tools / MSI Addin setup and debug
« on: July 27, 2011, 06:51:48 pm »
Hi everyone,

I'm trying to make a MSI file to install my addin for EA.
I followed several tutorials, including the one found here: http://community.sparxsystems.com/tutorials/tool-integration/deploy-your-enterprise-architect-c-add-msi-package

The trouble is that, for an unknown reason, i always finally get the same issue: the setup program ends with no troubles, but when i start EA, the addin appears in the state "Error/Missing" in the menu Addins>Manage Addins...

Is there a way to know what's missing to get it working?

Thank you by advance,

SJ.

12
That was actually the missing link!
The problem is solved, thank you very much ;)

Have a very good week-end!

SJ.

13
I guess this is the missing link!
I'll try it today, thank you very much Simon!

14
Well everything is in the same diagram of the same profile.
Maybe i totally misunderstand.

I used as example this pic i found on the website for icons.


To be sure i'm understanding correctly:

Here, MyElements is the toolbox, linking the item MyStereo through the attribute.
MyTech is the profile. I don't understand what means (My Elements) before the toolbox name.
Everything is in the same profile package.

My project is like that:

Model
 - <<profile>> OEAProfile
 - - OEAProfile //The class diagram where i edit the toolbox.
 - - <<stereotype>> OEAProfile::OEAClass(UML::Class) //Item
 - - <<stereotype>> OEAProfile::OEAInstance(UML::Class) //Item
 - - <<stereotype>> OEAProfile::OEAToolbox //Toolbox
 - - <<metaclass>> ToolboxPage

In OEAProfile::OEAToolbox, i have two attributes refering to the two items.
What am i missing? I'm quite lost with that kind of development...

Thank you for your help,

SJ.

15
Actually, i simplified the problem. The problem is that my toolbox is there, displayed, but when i drag an item, nothing happens.

I restart from scratch:
Now, i just have my stereotype named OEAToolbox, extending the metaclass ToolboxPage.

In my stereotype OEAToolbox, i have the following attributes:

OEAToolbox::OEAClass(UML::Object) = Import a class
OEAToolbox::OEAInstance(UML::Object) = Import an instance

In the toolbox, they correctly appear with the Object icon and the expected label, but when i drag, nothing.
What am i supposed to do so that my two items create a normal object?

Thank you by advance,
SJ.

Pages: [1] 2