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

Pages: 1 ... 151 152 [153] 154 155 ... 169
2281
Automation Interface, Add-Ins and Tools / Re: Custom Toolbox
« on: March 11, 2011, 09:40:08 am »
It looks like you are treating your toolbox profile as a normal profile. Did you import it in the Resources tree? If so, delete it from there and create an MDG Technology using the Technology Wizard (Main Menu > Tools > Generate MDG Technology File). When you get to the "Contents" page of the Wizard, tick the "Toolboxes" option and clear all the rest. Once you have created your technology, you will need to enable it: Main Manu > Settings > MDG Technologies > Advanced > Add > Add Path, and restart EA. There's more info in the help file.

HTH

2282
First thought is that you need to set the connector's ClientID and SupplierID before calling Update. If that isn't the problem, could you show us your code please?

2283
Quote
shape main {
      if (HasProperty(
                  "source.element.stereotype",
                  "somestereotypename"))
      {
            setpencolor(255, 0, 0);
      }
      if (HasProperty(
                  "target.element.stereotype",
                  "somestereotypename"))
      {
            setpencolor(255, 0, 0);
      }
      moveto(0,0);
      lineto(100,0);
}
This shape script also manages to confuse EA 9.0, so yes please send in a bug report...

2284
This has been fixed for EA 9.0 (release date unknown).

2285
Quote
Should I assume that each EA.Element object with "Subtype" with the value of "19" is an Hyperlink?
Also check Element.Type is "Text"

2286
I think you've missed a semi-colon...

Quote
diagram.StyleEx = "ShowNotes=1[highlight];[/highlight]";
diagram.Update();

2288
Currently not possible. The closest you can get is to write a model validation add-in that will validate your model after you have created it.

2289
Automation Interface, Add-Ins and Tools / Re: Profile - Custom dialog box
« on: December 29, 2010, 10:22:23 am »
You may be able to do something in response to the EA_OnContextItemDoubleClicked event.

2290
Will be in the next release (assuming it gets through code review!)

2291
print("#tag:tagname#");

2292
Automation Interface, Add-Ins and Tools / Re: scripting
« on: December 17, 2010, 11:17:41 am »
EA allows Dim ... as when using EA types, for example

Code: [Select]
Dim MyElement as EA.ElementThis allows you to use intellisense in the editor. However trying the same thing with a non-EA type will cause an error, for the reason that Geert gave.

2293
Your shape script will need to look something like this:
Code: [Select]
decoration star
{
    // insert drawing code here...
}

2294
There is no emf file. You can add decorations to elements though: search the help file for "shape scripts".

2295
Try this:
Code: [Select]
MyToolboxName::MyAssociation(UML::[highlight]AssociationElement[/highlight])For a full list of elements that can be included in toolbox profiles, see this page in the help file.

Pages: 1 ... 151 152 [153] 154 155 ... 169