Book a Demo

Author Topic: How can I create a swimlanematrix via script?  (Read 3862 times)

chrisHauert

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
How can I create a swimlanematrix via script?
« on: January 26, 2011, 09:23:33 pm »
I'd like to create diagrams via script that show a predefined swimlane matrix.
From the database I can see that there are entries created in t_xref for each swimlane. The saved swimlane matrix profiles are stored in t_trxtypes.
As much as I can understand from the help the automation interface only provides support for diagram.SwimlaneDef.Swimlanes.Swimlane but not for swimlane matrices. It's in no way evident what interface to use and how to proceed to add swimlanes from the help tmho.
I'd appreciate any help!!!
« Last Edit: January 26, 2011, 09:35:22 pm by chrisHauert »
Cheers, Christoph

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How can I create a swimlanematrix via script?
« Reply #1 on: January 26, 2011, 09:39:38 pm »
Christophe,

I think (without proof) that you'll have to do something like
Code: [Select]
EA.SwimLane newSwimLane = myDiagram.SwimLaneDef.SwimLanes.Add("newSwimLane",50);
myDiagram.Update();
To add a new swimlane to the diagram.

Geert