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?