Book a Demo

Author Topic: PackageControl->GetPackage  (Read 3883 times)

Daniel Ramos

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
PackageControl->GetPackage
« on: June 18, 2008, 11:44:43 pm »
Hi.
I need to execute this funcionality by code. I work with a team and use svn. When other person add a new diagram it was create a xml in a svn folder. So i need to mantain my project with all diagrams.

How to do this? Using EA normally i go to package control --> getpackage and choose  xml files.

I need to this funcionality in .Net C#

Thanks

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: PackageControl->GetPackage
« Reply #1 on: June 19, 2008, 12:01:20 am »
This function is sadly missing in the API. Unless tonight someone from Sparx tells us there's an undocumented feature like Repository.CustomCommand("Repository", "magic get package formula", packageURL).

(compare http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1205431696/0#0)

Daniel Ramos

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: PackageControl->GetPackage
« Reply #2 on: June 22, 2008, 04:07:06 am »
Hi.

I appreciate your answer but i don't understand the parameters that i need to pass. All should be strings but...

Repository.CustomCommand("Repository", "magic get package formula", packageURL)

Could you give me a real example?
i should replace "Repository" by...?
And "magic get package formula" by ...?
And packageURL by?

Thanks



Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: PackageControl->GetPackage
« Reply #3 on: June 22, 2008, 06:38:09 am »
Daniel,

I'm sorry about that, but I was only joking. Or trying to push Sparx towards some reaction, cause the thread I was referring to shows that there are undocumented features within the API, and we only get to know about them when someone from Sparx sees fit to enlighten us in this forum.

Frank