Book a Demo

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 - jordi-koro

Pages: [1]
1
General Board / Re: Tagged values of a package by vbscript
« on: November 12, 2010, 10:18:47 pm »
Works!

Thank you very much!

2
General Board / Tagged values of a package by vbscript
« on: November 11, 2010, 07:50:16 pm »
Hi,

Is possible to acces to the tagged values of a package by vbscript. For elements works:

Dim elem As EA.Element
Dim list As EA.Collection

list = elem.TaggedValues

The package don't has this method.

Someone knows how to get the tagged values of a package?

Thanks in advance

3
Automation Interface, Add-Ins and Tools / Re: Get Parent and Interfaces
« on: November 18, 2010, 10:13:54 pm »
Solved,

the method to get this relations is:

X.Genlinks

Thank you very much for your attention

4
Automation Interface, Add-Ins and Tools / Re: Get Parent and Interfaces
« on: November 18, 2010, 02:09:54 am »
Sorry,

Is not some code that is not working. The problem is that I don't how to get some data on EA.

1- I create a diagram
2- I add a class called X in a diagram.
3- I add to the class X by "right click"->Advanced -> parent (Type Hierarchy dialog), a new generalizes relation with the type Y

Then I need to get this relation by vbscript and I try to get it by several ways:

Getting first the element X I try:

1- to find the relation in the collection returned by X.Connectors
2- to find the relation in the collection returned by X.GetRelationSet(EA.EnumRelationSetType.rsGeneralizeEnd)
3- to find the relation in the collection returned by X.GetRelationSet(EA.EnumRelationSetType.rsGeneralizeStart)

At this 3 collections contains all other relations that I have with the class X but not the relation that I genarate by the Type Hierarchy dialog.

My question is:

Which is the way to get the element relations generated by the Type Hierarchy dialog.

5
Automation Interface, Add-Ins and Tools / Get Parent and Interfaces
« on: November 17, 2010, 11:07:51 pm »
Hi,

By vbscript, I'm trying to get the parents and interfaces of an element that is in a diagram.

I'm setting the parents and interfaces by going to the menu advanced/parents in the context menu, clicking on an element of a diagram.

I'm trying to get the relations introduced by EA.Element.Connectors and by EA.Element.GetRelationSet by i'm not getting any element.

Can you help me?
Thanks in advance

6
Hi!

Someone knows how to add class parameters by vb script in a EA project?

I just can modify the class type by:

c.Subtype=1 '(Class Parameterised)

And now to add parameters...?

Thanks in advance

Pages: [1]