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 ... 153 154 [155] 156 157 ... 171
Should I assume that each EA.Element object with "Subtype" with the value of "19" is an Hyperlink?
Also check Element.Type is "Text"

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

diagram.StyleEx = "ShowNotes=1[highlight];[/highlight]";

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.

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.

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


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.

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

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

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.

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

Automation Interface, Add-Ins and Tools / Re: create a new repository
« on: October 26, 2010, 10:26:23 am »
ok thanks,
and how does this work with the function:
rep.CreateModel (CreateModelType.....,"C:\\usr" , 0);
I receive a null Pointer?
Have you tried a filename as the second parameter? "C:\\usr" looks like a folder name.

Automation Interface, Add-Ins and Tools / Re: create a new repository
« on: October 12, 2010, 08:37:59 am »
To create a new .eap file, copy an existing one. C:\Program Files\Sparx Systems\EA\EABase.eap is there for that very purpose.

Unfortunately, not possible out of the box. But you can create an add-in that implements the EA_OnPreNewConnector broadcast handler and perform your validation in there. Search the help for EA_OnPreNewConnector for full details...

Pages: 1 ... 153 154 [155] 156 157 ... 171