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

Pages: 1 ... 13 14 [15] 16 17 18
211
Hey everyone,


Got a lot of ducks here that need lining up.

I'm generating a .docx document using a script. The script and the templates are in an MDG Technology, and everything is working except one thing -- headers.

Adding headers to my regular templates does zip. EA ignores them. (Unless I put them in the template fragments, in which case some but not all of the fragments cause the header to appear in the middle of the page, some but not every time that fragment is invoked.)

I can get headers by creating a linked document, which has the header but is otherwise empty, and calling Document.InsertLinkedDocument(). OK good.

But. InsertLinkedDocument() takes a GUID, which it uses (it would appear) to look up the linked document in t_document -- in the target project. I want to include the header document in the MDG Technology.

I've tried creating a linked document template in the MDG Technology project's resources, and including that with the MDG Technology, but referring to its GUID doesn't work -- presumably that's not included in the XML file, or otherwise EA doesn't check the MDG Technology to look up the linked document.

Is there a way to get this to work? Or am I going to have to place a copy of the header document in each target project?

Cheers,


/Uffe

212
Hi all,


Is there some way to induce an instance type (eg Action) to display its classifier's diagram in a compartment or frame? There's no such selection in the context menu, but can I do it with a shape script?

I don't want to reuse the classifier in other diagrams, and I don't want to resort to diagram frames if I can help it. An Add-In is also out on this occasion. I'm still on EA 11, if that makes a difference.

Any ideas?


Cheers,


/Uffe

213
Automation Interface, Add-Ins and Tools / Shape size and selection box
« on: March 09, 2015, 10:56:36 pm »
Hello,


I need to create a small element shape, about the same size as a Port but for a proper non-embedded element type.

I can draw a smaller rectangle in the main shape, but if I then select an element with that stereotype in a diagram the selection box fills out to the regular element size.

Is there some property I can set to change the actual size of the element shape script drawing canvas?

Cheers,


/Uffe

214
Automation Interface, Add-Ins and Tools / Gradients in subshapes
« on: March 04, 2015, 09:17:52 pm »
Hey everybody,


I've got this stereotype with an unpleasantly large number of tagged values, which I need to display in different boxes in a single shape. I'm using subshapes with rectangles in a top-down layout.

Problem is, the color gradient is applied separately in each subshape, so I end up with a very stripy-looking beast which is hard to read.

Is there a way around this?

I'm looking for something I can set in the shape script or the diagram definition, but I'm coming up empty. I can minimize the effect by using white as the fill color, but I can't make it go away completely.

I'm on 11.1.1112.


Cheers,


/Uffe

215
Automation Interface, Add-Ins and Tools / Icons in package contents
« on: January 28, 2015, 09:44:50 pm »
Hi!


I'm working on an MDG Technology which includes stereotype icons. These show up as expected in the project browser and the toolbox, but if a package is displayed with its contents, the metaclass icons (Activity, Class, Object, etc) are used instead.

I wouldn't call this a bug necessarily, more of an oversight. Or is there a specific reason why the metaclass icons are used in package contents?

I'm using 1112 -- can anyone confirm this behaviour in EA 12?

Cheers,


/Uffe

216
Hi!


The help file (in 1112) says the logo is a 64x64 bitmap. You can select a larger image and EA will resize it.

But if you do a screen dump of the MDG Technologies (selection) dialog, the logo area seems more like 128x128.

So if I use a 128x128 image, is it first reduced to 64x64 and then enlarged? Or is the full 128x128 retained (meaning the help file's incorrect)?

If the 128x128 is first reduced, I might as well use a 64x64 and save some space in the file and some time in the generation.


Cheers,


/Uffe

217
Hi there!


Using various special attributes (_instance*) I can specify which instance types are related to a stereotyped classifier type.
I need to do this in reverse.

In other words, I want to add a stereotyped instance type (Object) to one of my toolboxes, and specify that its classifier must be an Actor (stereotyped if necessary). This would limit the selection in the Select Classifier dialog.

Without resorting to scripts or an Add-In, is there a way to achieve this?

Cheers,


/Uffe

218
Automation Interface, Add-Ins and Tools / Add requirement to toolbox
« on: June 19, 2014, 12:37:43 am »
Hi all,

Is there a way to include a specific type of requirement (eg Display or Performance) in a diagram toolbox?

I can of course create a requirement stereotype in a profile and use that - but then I can't pick that type in the Requirement property dialog (although I can pick it in the stereotype selection dialog, which I can open from the Properties window).

/Uffe

219
Hi all,

Something v strange going on here.
I'm generating RTF documents with DocumentGenerator in 1009 on Windows 7/64, and I'm not getting any headers or footers.
If I run the regular GUI RTF generation with the same template on the same element, the header and footer show up as expected.
I've checked the generated RTF files and indeed the one generated by DocumentGenerator lacks {\header} and {\footer}.
Code: [Select]
DocumentGenerator docGen = repository.CreateDocumentGenerator();
docGen.NewDocument("");
docGen.DocumentElement(repository, element, "TestTestTest");
docGen.SaveDocument(fileName, DocumentType.dtRTF);

Any ideas?

Cheers,


/Uffe

220
Automation Interface, Add-Ins and Tools / Information items conveyed
« on: February 27, 2014, 06:48:03 am »
Hi all,


I've got some information flows which all convey a single class.
I'd like to be able to locate all these connectors (ie the reverse of Find Items Conveyed), but I can't find how. It's not part of the regular connector properties and it doesn't seem to be stored in t_connector, t_connectortags, t_connectorconstraints, t_diagramlinks or t_object.

Any clues?

Cheers,


/Uffe

221
Automation Interface, Add-Ins and Tools / Shape script "addin" property
« on: January 29, 2013, 08:20:30 pm »
Hi!

Does anyone have an example of how to use the "addin" property in a shape script?

All I can find in the help file is "addin (value returned from an Add-In)," but it doesn't say anything more on the syntax, nor can I find any hint in the Add-In API reference.

How is it called from the shape script, how is it received in the Add-In and what is the Add-In supposed to return?

Cheers,


/Uffe

222
Automation Interface, Add-Ins and Tools / Directed association in toolbox
« on: December 11, 2013, 03:05:24 am »
Hello all,


In a quick linker definition, I can specify that an association is to be directed from source to target. In a diagram toolbox, on the other hand, I can only specify "Association" and it comes out with direction unspecified.

Is there a way to specify a directed association in a toolbox?


Cheers,


/Uffe

223
Hi all!


I'm working on an RTF template, simple little thing which lists in a table each element's name, author, status and diagram occurrences ("usage").
The diagrams are in a numbered list, the whole list (for each element) in one cell.

My problem is, the numbering in this list carries over between rows and I don't want it to: I want the first diagram in each row to be numbered '1'.

Anyone know how?

Cheers,


/Uffe

224
Hi there!


I want to open EA from inside a stand-alone application (not from an Add-In). I create a Repository, call OpenFile(), then ShowWindow(). EA opens up fine, I can do stuff in the repository, but where are my extensions?

I'm using 10.0.1008 Ultimate, with a single third-party Add-In (one of my own).
The usual MDG Technologies (GML, Publish, etc) are absent from the Extensions menu, and in the Manage Add-Ins dialog, my Add-In has status Error.

Everything works as expected when opening the same repository using the EA application.

I've also tried creating an App object instead of the Repository object, but got the same results - no extensions.

What am I missing?

Cheers,


/Uffe

225
Hi!

I would like the option of having my Add-In open up its help file when the user hits F1 when working with elements or diagrams from an MDG Technology I've created.

This should be doable by adding a context item broadcast event function which identifies the element, package, diagram, attribute, method or connector in focus when F1 was pressed.

The function should return True if the Add-In takes responsibility for the help, False otherwise (like OnContextItemDoubleClicked). To be on the safe side, you could always refrain from firing the event if the context item has a stereotype from one of Sparx' own profiles.

Sound good?

Cheers,


/Uffe

Pages: 1 ... 13 14 [15] 16 17 18