Book a Demo

Author Topic: Check if a controlled package is check out  (Read 4049 times)

Dieter Goetz

  • EA User
  • **
  • Posts: 43
  • Karma: +0/-1
    • View Profile
Check if a controlled package is check out
« on: July 08, 2011, 11:48:20 pm »
Hi,

I have a problem changing diagram notes of controlled packages within  VB scripts.
Even if the controlled package is locked (checked in) the diagram notes will be changed by the VB script.
How can I check if the controlled package is checked out or not?
« Last Edit: July 08, 2011, 11:48:37 pm by dgifm »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Check if a controlled package is check out
« Reply #1 on: July 11, 2011, 04:59:04 pm »
have you tried package.VersionControlGetStatus ()?

Geert

Dieter Goetz

  • EA User
  • **
  • Posts: 43
  • Karma: +0/-1
    • View Profile
Re: Check if a controlled package is check out
« Reply #2 on: July 12, 2011, 07:24:48 pm »
Thanks. Now it is working.
« Last Edit: July 12, 2011, 07:25:17 pm by dgifm »