Book a Demo

Author Topic: automate baselines  (Read 4450 times)

Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
automate baselines
« on: March 26, 2013, 09:54:40 pm »
Hi
I want to be able to produce a project baseline on a daily basis without having to open my project to do so
I have never written an addin or anything like it.
Does anyone have any hints as to how I can do this

Thanks

Maggie

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: automate baselines
« Reply #1 on: March 26, 2013, 10:50:28 pm »
use the search button on the top left.
There have been a few threads recently about exactly that.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: automate baselines
« Reply #2 on: March 26, 2013, 11:26:11 pm »
Code: [Select]
use Win32::OLE;
$ea = Win32::OLE->new('EA.App') or die "oops\n";
$rep = $ea->Repository;
$rep->OpenFile ("C:\\Documents and Settings\\Administrator\\Desktop\\OCTest.eap");
$pIface = $ea->Project;
$GUID = $pIface->GUIDToXML ('{A130176C-559B-4937-A06E-7886D1A98D01}');
print $pIface->CreateBaseline ($GUID, '<version>', '<notes>');
$pIface->Exit ();
Adjust the Filename, GUID, version and notes and run the perl script from command line.

q.
« Last Edit: March 26, 2013, 11:26:43 pm by qwerty »

Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
Re: automate baselines
« Reply #3 on: March 27, 2013, 01:07:27 am »
Thanks for that qwerty
Have you any hints how I can automatically update the version?
I have no perl programming experience! Indeed I have no programming experience at all!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: automate baselines
« Reply #4 on: March 27, 2013, 03:22:38 am »
Well, if you had no driving license it would not make sense to sit besides you and tell which lever to move. You should go ahead and search for someone around that can do the job.

q.

Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
Re: automate baselines
« Reply #5 on: March 27, 2013, 03:33:19 am »
Ok
thanks for your help