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.

Topics - Ian Mitchell

Pages: 1 2 [3]
I'm trying out the "Office Integration" add-in from Sparx, and there's a useful-looking button on the front page of 'Import Word Document' which says 'Add Diagrams for each package'.
No matter what I do, I can't get it to import the diagrams from my Word document.
Has anyone else made this work?

Automation Interface, Add-Ins and Tools / Sort order of Scenarios
« on: June 10, 2015, 11:59:49 pm »
I'm pulling scenario data from the API using EA.Element.scenarios, but there is some data missing, namely the 'Step' indication from the UI.
The UI shows each scenario with the basic path step from which it is called, and a letter (a->z), so that the steps have a predictable sort order in the UI.
Question is, where does that sort order, and the 'step' numbering come from ?
The table t_objectscenarios has a column 'EValue' - even Querty doesn't know what this does, but it may get copied into an attribute called 'scenario.weight', which is sometimes the sort order, and sometimes not.
Can anyone from Sparx tell me where the Step number+letter comes from ?

Automation Interface, Add-Ins and Tools / Office MDG Performance
« on: June 08, 2015, 09:34:48 pm »
Having just installed the Office MDG, i'm now getting some strange performance impacts from Word and Excel. Each of them now takes about 10 sec extra whenever a file is loaded. This seems to be associated with Word and Excel addins which also seems to get installed with the EA MDG.
I have a i5 computer with 8Gb and an SSD, so everything else is super-fast: does anyone know what these addins are doing for 10 seconds each time ?
BTW - disabling the Sparx addins removes the problem, so I'm 100% certain they are to blame.

I've only just discovered that we're allowed to create content for the Learning Center, which would mean I can write training material which the user can view at the same time they are using EA: should be great!
But the instructions are quite brief, and I've spent a while not making much progress.
Does anyone have an example - even a simple  'hello world' one - which shows how I can create a bunch of pages, have them link to each other, and have some diagrams etc. this would help me see what I'm aiming at. Or perhaps Sparx might make a little bit of the actual Learning Center content available, as a ready-made example?

Automation Interface, Add-Ins and Tools / MS Word Import tool ?
« on: October 15, 2013, 04:45:27 pm »
I have a customer who needs a way of doing a 1-off import of a number of large MS Word documents into EA, and breaking them up into separate Packages, Requirements, Classes, Features etc. so they can then use EA to manage the data.
Does anyone know of any tools which might help them ?

What I had in mind was a 2-stage process.
  • First they take the heading structure of the document and make it into the EA Package structure. Maybe they might then take the content under each heading and make it into a Linked Document under each EA Package. This would at least get everything into EA.
  • They would then have to go through all the content, and highlight individual sentences/paragraphs, and make then into the relevant EA elements.

Has anyone written anything to do this? Has anyone any experience of doing his some other way?

Automation Interface, Add-Ins and Tools / Test for Identical elements ?
« on: October 28, 2013, 11:12:18 pm »
Does anyone know of a way to test if two elements, created using the ClonePackage call, are identical i.e. has the clone been changed ?
Clearly, the GUIDs will always be different, so I need to ignore that, but there seems to be an almost limitless depths to checks needed to say whether one has changed: not just basic attribute values (Name, Status), but Attributes & Methods (and all their internal sub-structure e.g. parameters), Tagged value names and values, sub-elements like Constraints.....
There must be an easier way ? Maybe ? (and No, I don't want to create baselines : this is for an element-by-element comparison)

Automation Interface, Add-Ins and Tools / How to close a tab?
« on: September 18, 2013, 12:14:41 am »
I'm using the repository.addTab() method to create new tabs, but now I'd like to close them again, under program control.

The other "addXX" methods have equivalent "removeXX" methods, like removeOutputTab and RemoveWindow, but where's the 'removeTab' method?
Or does anyone know a way to close such a tab in some other way ?

In the definition of a ModelView, the name of  search is defined by its GUID.
But to run the search using repository.getElementsByQuery, we need the name of the search.
Does anyone know how to do a lookup on the search GUID to get its name ?

I need to get back the contents of a diagram. Diagram.diagramObjects does this perfectly, but what about when the user has applied a Diagram Filter. Great feature, but how can I get the sub-set of diagramObjects from the diagram with the filter applied?
Looking at the format of the filter definition in t_xrefsystem (found that thanks to its really complicated, so no chance to do the filtering myself.
Any ideas ?

Automation Interface, Add-Ins and Tools / Drag/drop and Add-ins
« on: February 06, 2010, 05:25:46 am »
I'm writing an Add-in which needs to drag items from the Project Browser into a treeview control, which is inside a custom control.
I've enabled the control for drag/drop, but none of the dragover etc events fire. All I get is the 'there is no current diagram to perform this operation...' message from EA.
Does anyone have some example code for making d/d work in this context ?

Automation Interface, Add-Ins and Tools / Closing an Addin custom view
« on: February 12, 2010, 01:40:48 am »
Having coded my Add-in, I'm finally getting around to the tidy-up of the UI, and I can't seem to find any way to close the Custom View under program control. Is there an interface somewhere to do this ? If not, why not?
Also, having created the new Tab which contains the custom view, how can I change the name of it? In my add-in, the user gets to do a 'saveAs' for the data in view, and it would seem sensible to change the tab name once they have done so.

Pages: 1 2 [3]