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
2266
print("#tag:tagname#");

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

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

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

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

2271
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

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

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

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

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

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

See the help page Create Toolbox Profiles

2277
Quote
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

2278
Quote
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!

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

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

2279
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
{
      noshadow=true;
      defsize(50,50);
      startpath();
      moveto(0,100);
      bezierto(46,-36,54,-36,100,100);
      bezierto(40,80,60,80,0,100);
      endpath();
      fillandstrokepath();
}

Quote
P.S. Why is it I'm sceptic about people they call themselves evangelist?
^this.
(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?)

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

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