Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Pegasus on May 08, 2017, 11:18:48 pm

Title: Java-API: CreateBaseline application (parameter)
Post by: Pegasus on May 08, 2017, 11:18:48 pm
Hello

Question to use of API for CreateBaseline. API Doc http://www.sparxsystems.com/enterprise_architect_user_guide/13.0/automation/project_2.html (http://www.sparxsystems.com/enterprise_architect_user_guide/13.0/automation/project_2.html) describes the requirement to first parameter "PackageGUID: String - the GUID (in XML format) of the Package to Baseline". I found some example for jscript but not for Java API.
I do call
org.sparx.Package packageSel = m_repository.GetTreeSelectedPackage();
...
m_repository.GetProjectInterface().CreateBaseline(packageSel.GetPackageGUID(),startDate, baseLineNoteStr + startDate);

and it runs seemingly well, but I'm not sure if I use the api well.
Can someone confirm or please describe correct use of api.

Thank you  in advance
Pegasus
Title: Re: Java-API: CreateBaseline application (parameter)
Post by: qwerty on May 08, 2017, 11:43:51 pm
As written in the other reply: see GetProjectInterface GUID XML conversion routines.

q.