API Help
Eplan.EplApi.DataModel Namespace / Function Class / LockDevice Method
If true, then Connection Definition Points will locked as well and the call is equivalent to SmartLock()

In This Topic
    LockDevice Method
    In This Topic
    Tries to lock current device (which can refer to several objects, such as all function's representations) in database for exclusive access. Throws Eplan.EplApi.Base.LockingException on failure. If locked device in placed, corresponding page(s) will be locked as well.
    Syntax
    public void LockDevice( 
       bool bWithCDPs
    )
    public:
    void LockDevice( 
       bool bWithCDPs
    ) 

    Parameters

    bWithCDPs
    If true, then Connection Definition Points will locked as well and the call is equivalent to SmartLock()
    See Also