Book a Demo

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

Pages: [1]
1
Automation Interface, Add-Ins and Tools / Re: Programatically Export XMI
« on: November 05, 2004, 09:35:22 am »
Responding to myself  ;D :
Looks like the ...

ExportPackageXMI (String, Long, Long, Long, Long, Long, String)  

... method on the Project class may be the one I'm after!

I'll try this next, but any other thoughts welcome

Tobin

2
Automation Interface, Add-Ins and Tools / Programatically Export XMI
« on: November 05, 2004, 09:29:45 am »
Hi there,

Is there a way of programatically exporting the XMI for a given package, including image generation?

What I'm after is the equivalent of selecting "Export Package to XMI file" from the model tree, only through the API without asking for user intervention.

I considered using the Project Interface for manually constructing XMI segments, but it would be better if EAs nice XMI export functionality could be invoked directly!

Thanks

Tobin


3
Automation Interface, Add-Ins and Tools / More .NET Woes
« on: October 19, 2004, 11:17:09 pm »
Hi there,

After upgrading to latest build 4.10.739, our .NET addin has suddenly stopped working.

The symptom of this is that when you launch EA, a messagebox pops up saying "There was an error loading the add-in 'Blahblah(Blah.blah)' remove it from the list?"

I've now tried rebuilding against the latest EA dlls, but am still having problems. More specifically, despite  implementing the Addin interface, I get a compile error saying that the Connect method is not implemented, but it is! So, I also tried inheriting from the AddinClass class instead, which will compile but I then get the "Error loading addin" popup when launching EA.

Any help much appreciated.I didn't see any mention of breaking changes in the docs or the realease list.

Tobin



4
Hi there,

Has anyone made any progress with this issue? I could do with the same functionality myself!

I noticed that when I put HTML markup in the Notes text of an element, then this does NOT get escaped in the HTML documentation, which is handy because users *can* put markup in the notes. However, I think that this is probably more of a bug than a feature, since I would want characters to be escaped usually. Also, I really need to be able to do this for RTF docs. I tried putting raw RTF commands in to the text, and it didn't work  :)

Ideally, it would be great if Sparx provided in-built  formatting functionality for these free text areas, which would allow  bold, italics, headings etc. This is no trivial thing though, since they would also need to interpret these commands for both HTML and RTF output.

Any pointers much appreciated.

Tobin




5
Automation Interface, Add-Ins and Tools / Re: Refresh Packages
« on: September 13, 2004, 03:51:01 am »
Hi there,

Thanks for the suggestion, but unfortunately this does not work. It's actually the tree view that is not refreshing.

Interestingley, EA does reflect new additions in the tree view such as:

somePackage.Elements.AddNew( "New Use Case", "Use Case");

However, if I call something like:

somPackage.Elements.Delete( someElement.ElementID );

then EA will only show the changes after a reload (invoked from the File menu).

Any help appreciated.

Tobin      

6
Automation Interface, Add-Ins and Tools / Refresh Packages
« on: September 07, 2004, 08:37:36 am »
He there,

I have an Addin that generates elements into a package, and also deletes certain elements.

Despite calling .Update() on the package from the code, I find that EA doesn't refresh the view. It will show new elements, but it doesn't show the old ones as deleted. If I select a deleted element in the tree, EA says that the element was not found, and reloads the project.

Is there a way to make EA reflect the true state of the underlying model from within the Addin code?

Any help much appreciated.

Tobin

Pages: [1]