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

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

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

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

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

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

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

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

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

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

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

2322
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

2323
Automation Interface, Add-Ins and Tools / Re: create a new repository
« on: October 26, 2010, 10:26:23 am »
Quote
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.

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

2325
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