Book a Demo

Author Topic: How do I create a swimlane in C#  (Read 2891 times)

phamrt1

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
How do I create a swimlane in C#
« on: September 19, 2008, 07:46:51 am »
Hi,

I am a new user of EA Automation Interface.  I am trying to add vertical lines that serve the same purpose as swimlanes to a custom diagram using C#.  My training has been limited to examples from the site.  After creating New_Diagram to an existing EA repository, I tried to create a swimlane with the following code:

EA.SwimlaneDef Swimlane1 = (EA.SwimlaneDef)New_Diagram.SwimlaneDef.Swimlanes.Insert(0,"Lane1",1);

but I am getting this exception:
{"Swimlane does not exist"}

Question 1: What did I do wrong? How do I can create swimlanes correctly?

Question 2: Instead of a swimlane, how do I create a simple vertical dotted line to a custom diagram?

Thanks
phamrt1