The Enterprise Architect Object Model - Enterprise Architect Object Model 20 January, 2020
unsuccessful. Use GetLastError() to retrieve error information.
ReleaseUserLockRecursive
(boolean IncludeElements,
boolean IncludeDiagrams,
boolean
IncludeSubPackages)
Boolean
Notes: Releases user locks from the Package object, and all of the Packages,
diagrams and elements contained within that Package. User Security applies to the
use of this function; if the user does not have permission to apply or release locks
on elements, diagrams and Packages, the operation will fail.
Returns True if the operation is successful; returns False if the operation is
unsuccessful. Use GetLastError() to retrieve error information.
Parameters
IncludeElements: Boolean - Recursively release user locks from child elements
IncludeDiagrams: Boolean - Recursively release user locks from child diagrams
IncludeSubPackages: Boolean - Recursively release user locks from child Packages
SetReadOnly (boolean
ReadOnly, boolean
IncludeSubPkgs)
Void
Notes: Sets a Package Flag to mark a Package as ReadOnly=1.
If Project Security is enabled, the user must have 'Configure Packages' permission
to use this method.
Throws an exception if the operation fails due to the user not having 'Configure
Packages' permission; use 'GetLastError()' to retrieve error information.
Parameters
ReadOnly: Boolean - Sets or clears the Read Only flag on the Package(s); if:·
False, any Read Only flag is removed from the Package
True, a Read Only flag is applied to the Package
IncludeSubPkgs: Boolean - Indicates whether to set/reset the Read Only flag·
on just the object Package, or on the object Package and all of the nested
sub-Packages that it contains; if:
False, only the flag on the object Package is set or cleared
True, flags are set (or cleared, according to the ReadOnly
parameter) for the object Package plus all of the nested sub-Packages that it
contains
When working with Version Controlled Packages, the Read Only flag can be
applied to Packages whether they are checked-in or checked-out.
User Security applies to setting this flag - if you are prevented from editing the
Package, you are also prevented from setting the flag.
Update () Boolean
Notes: Updates the current Package object after modification or appending a new
item.
If False is returned, check the 'GetLastError()' function for more information.
Note that a Package object also has an element component that must be taken into
account; the Package object contains information about the Package attributes such
as hierarchy or contents.
The element attribute contains information about, for example, Stereotypes,
Constraints or Files - all the attributes of a typical element.
VersionControlAdd (string
ConfigGuid, string
XMLFile, string Comment,
boolean KeepCheckedOut)
Void
Notes: Places the Package under Version Control, using the specified Version
Control Configuration and the specified XMI filename.
Throws an exception if the operation fails; use GetLastError() to retrieve error
(c) Sparx Systems 2019 Page 65 of 314 Created with Enterprise Architect