Parameter.LockLevel
 
 
 

Parameter.LockLevel operator

Introduced

v4.0

Description

Returns the lock level for this parameter (siLockLevel) if it is locked. If it is not locked, siLockLevelNone (0) is returned.

C# Syntax

// get accessor
siLockLevel rtn = Parameter.LockLevel;

Examples

JScript Example

/*
        This example demonstrates how to find out the lock level on a parameter
*/
NewScene( null, false );
var oObj = Application.ActiveSceneRoot.AddGeometry( "Cone", "MeshSurface" );
var oParam = oObj.subdivu;
Application.LogMessage( "The parameter lock level is: " + oParam.LockLevel );
Lock( "cone.polymsh.geom.subdivu", siLockLevelManipulation );
Application.LogMessage( "The parameter lock level is: " + oParam.LockLevel );
UnLock( "cone.polymsh.geom.subdivu", siLockLevelManipulation );
// Expected results:
//INFO : The parameter lock level is: 0
//INFO : The parameter lock level is: 7

See Also

Parameter.SetLock Parameter.UnSetLock Parameter.LockType Parameter.IsLocked ProjectItem.LockLevel Lock Unlock