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 ... 17 18 [19] 20 21
271
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

272
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

273
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

274
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

275
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

276
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

277
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

278
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

279
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

280
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

281
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

282
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

283
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

284
Hi all!

I'm working on an MDG Technology for a client where I want to control the creation of instances of Activities which have a stereotype I've defined.

According to the help file, this is controlled using three string parameters in the classifier stereotype; _instanceMode and _instanceOwner, which are used in the "Paste Element" dialog, and _instanceType, which should match the _metatype attribute in the instance stereotype.

I've set up my stereotypes accordingly, one extending Activity and the other CallBehaviorAction -- but the dialog stays the same and the actions are created with the classifier's stereotype.

The exact same setup works for Classes and Objects but, as I say, not for Activities and Actions.

Is this by design, or is it a bug?
Is this still the behavior in EA 10? (I'm on 9.3.933.)
If it is, I'll have to implement a workaround. If not, it'll be fixed when we upgrade.

Cheers,

/Uffe

285
Hi!


I'm working on an Add-In for a client, which on double-click on an element launches an external web browser with the URL taken from the element's "file" list (obviating the need to open the properties dialog, selecting the Files tab and launching the browser from there).

My question is this: is it possible to launch EA's internal web browser instead?
I can't find a function for this in the (9.3) API.


Cheers,

/Uffe

Pages: 1 ... 17 18 [19] 20 21