Book a Demo

Author Topic: How can i perform full lock through EA Automation Interface?  (Read 3696 times)

conan

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Hi,

Is there any API/Method in the object Model which I can use to apply full lock? Where I can only see the ApplyUserLock() method, but I would like to perform the full lock and not just user lock. Can anyone suggest me the way to solve this problem?

Thank you in advance.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How can i perform full lock through EA Automation Interface?
« Reply #1 on: May 12, 2020, 09:10:02 pm »
What is your definition of a full lock? ApplyUserLockRecursive?

q.

conan

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: How can i perform full lock through EA Automation Interface?
« Reply #2 on: May 12, 2020, 09:14:26 pm »
Hi Qwerty

Thanks for your reply.
I would like to access the full lock marked here

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 perform full lock through EA Automation Interface?
« Reply #3 on: May 12, 2020, 09:23:13 pm »
Probably Package.SetReadOnly (boolean ReadOnly, boolean IncludeSubPkgs)

But I've never used that function, so I don't know what it'll do.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How can i perform full lock through EA Automation Interface?
« Reply #4 on: May 12, 2020, 10:18:35 pm »
I would just use ApplyUserLockRecursive with the admin as user. That offers all the options from the dialog and since there is only one admin actually nobody else can edit afterwards. SetReadOnly is obviously something different. See the help.

q.

P.S. Just tried that function. It shows a lock on each package and everything is r/o afterwards. Different to Apply User Lock, but maybe an alternative?
« Last Edit: May 12, 2020, 10:25:34 pm by qwerty »