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 ... 152 153 [154] 155 156 ... 170
2296
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?

2297
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...

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

2299
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"

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

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

2302
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.

2303
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.

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

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

2306
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.

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

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

2309
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.

2310
Quote
In this case I would specifically look at t_object and t_diagramobject. The font will probably be hidden somewhere in the style columns.
Correct. Specifically, t_diagramobjects.ObjectStyle and t_object.Fontcolor

Pages: 1 ... 152 153 [154] 155 156 ... 170