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

Pages: [1]
1
Ok, Ive found it. You meant the help contents from ea...

Thanks, it works now

2
Hmm, I ve tried it, but it didnt work:

Dim objectDef As EA.Element
Dim diagramObject As EA.diagramObject

Set objectDef = package.Elements.AddNew("start", "StateNode")
objectDef.subtype = 100
objectDef.Update


Set diagramObject = diagram.DiagramObjects.AddNew("", "")
diagramObject.ElementID = objectDef.ElementID
diagramObject.Update


Where can I find the reference guide?

3
Hello,

I am trying to add an initial activity (StateNode) to an activity diagram, but it doesnt work.

Here my code example (VB6):

Dim objectDef As EA.Element
Dim diagramObject As EA.diagramObject

Set objectDef = package.Elements.AddNew("start", "StateNode")
objectDef.Update


Set diagramObject = diagram.DiagramObjects.AddNew("", "")
diagramObject.ElementID = objectDef.ElementID
diagramObject.Update


the result is a StateNode-object, but it is transparent and not black. What I am doing wrong?

4
When I set the attributes left and top, it happends nothing to the DiagramObject, it is still in the upper left corner of the diagram :-/

5
I have an other problem with setting left and right position of the diagramObject, I tried it like this:

activityDiagramObject.Left = 1000
activityDiagramObject.Top = 100
activityDiagramObject.Update


What is wrong here?

6
Thanks!! It works now :-)

My problem was that I tried to add an element onto the diagram and not a diagramObject...

How can I connect 2 activities with each other?

7
I am a little bit confused now...

What I have to do when i want create a new activity diagram and put an activity object onto the diagram?

I thougt that I have to do following (in VB6):

1. Get the Repository:

   Dim MyRep As New EA.Repository

   MyRep.OpenFile "c:\eatest.eap"


2. Get the Package in which I want to add the Diagram:

   Set RootPackage = MyRep.Models.GetAt(0)

3. Add new activity diagramm in the Package:

  Set activityDiagram = RootPackage.Diagrams.AddNew("My Diagram", "Activity")

4. Add new activity object in the package:

  Set activityObjectDef = activityPackage.Elements.AddNew("Activity 1", "Activity")

5. Put the activity object onto the activity diagram:

???


Now my questions are: Are the steps 1-4 correct? How can I put an object onto a diagram?


8
Ok, I ve tried something like this, but I cant set ELEMENTID for activityDiagramObject?

activityDiagramObject.ElementID has read only access and I cant set the ID. How can I set the elementID?

An other question is, how do I set the coordinates of my activityDiagramObject in the diagram?

9
Automation Interface, Add-Ins and Tools / Add an element to a diagram
« on: March 01, 2006, 02:27:56 am »
Hello,

how can I add a element to a diagram?

here is a code snippet:


Set activityDiagram = activityPackage.Diagrams.AddNew("My Activity Diagram", "Activity")

Set activityElement = activityPackage.Elements.AddNew("Activity 1", "Activity")

activityDiagram.DiagramObjects.AddNew (activityElement)

activityDiagram.Update
activityPackage.Diagrams.Refresh


But I cant add an to the diagramm using DiagramObjects.AddNew (activityElement)

How can I do that?

10
@Midnight:

The idea behind this is to transform an EPC (Event Driven Process Chain), which is used in ARIS Toolset (ARIS is a business process modeling tool), to an UML activity diagram.

11
Automation Interface, Add-Ins and Tools / Re: How to create repository?
« on: February 21, 2006, 06:03:04 am »
If I want to add a diagram to the repository, must I open it before? I want to add a diagram hidden without opening the project visible for the user.

12
Automation Interface, Add-Ins and Tools / How to create repository?
« on: February 21, 2006, 01:32:00 am »
HEllo,

how do I create a repository with the automation interface?

a code nsippet would be helpful...

13
Automation Interface, Add-Ins and Tools / Re: Create new activity diagrams?
« on: February 20, 2006, 03:25:35 am »
Ok, thanks for your answers.

Is there a tutorial for API available, because I don't know where I have to start...

I want to create Acitivity Diagrams with Activity, StateNode, Decsion, Dependency-Elements. Is there a good example for newbees?

Which approach would you advise me?

14
Automation Interface, Add-Ins and Tools / Create new activity diagrams?
« on: February 17, 2006, 07:31:21 am »
Hello,

is it possible to create an activity diagram in EA from a VB-exe with the automation interface?

If it is possible, can you tell me how?

Are there code samples available for things like this?

Thanks for your help!

hans

Pages: [1]