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 ... 150 151 [152] 153 154 ... 167

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

What Geert said!

Also, be aware that you should test the value returned by .Update(). If it returns false, call .GetLastError() and see what went wrong.

Automation Interface, Add-Ins and Tools / Re: Patterns in MDG technology
« on: October 06, 2010, 09:01:04 am »
Where are the patterns? Perhaps i have to create a toolbox to refer to them?

See the help page Create Toolbox Profiles

Hi gyus !

thanks for your helpful answers ... I got the elements sychnronized with my profile and tagged values are present.

The right solution was THIS

Code: [Select]
aRepository.CustomCommand("Repository", "SynchProfile", "Profile=PPP;Stereotype=SSS[highlight];[/highlight]");

The stereotype name is enough to provide without namespace.

thanks !

There was a missing semi-colon, which I have highlighted. HTH

Is it possible to specify the SysML::Interaction toolbox as the toolbox for my custom Diagram_Sequence?
I have no idea if it will work or not, but if it does you will need to specify either "SysML_Interaction" or "SysML1.1::SysML_Interaction". Let me know how you get on!

It is my understanding that if I want to extend a diagram, I have to specify a metaclass that is one of EA's built-in diagrams. I understand that those are pretty much those of UML. What if I specifically want to extend, say, a SysML Internal Block Diagram?
The SysML ibd extends "Diagram_CompositeStructure" so you would need to do the same.

Or, when designing the profile, how can I create a stereotype that extends SysML::Block rather than UML::Class?
You would need to extend Class and apply both «block» and your own stereotype to the same class element.

Ignacio, if you fancy having a go at creating a profile with shape scripts, here's a shape script for an OR gate to get you started:
Code: [Select]
shape main

P.S. Why is it I'm sceptic about people they call themselves evangelist?
(I have no problem with somebody being "a zealous advocate of something", but as a job title it's a bit B.S., isn't it?)

Automation Interface, Add-Ins and Tools / Re: Shape for port!
« on: August 02, 2010, 03:56:49 pm »
Question, what determines cx and cy?
Search the help for _sizeX and _sizeY

Pages: 1 ... 150 151 [152] 153 154 ... 167