IPdmHooks::BeforeGetLockInfo



Your Ad Here

Description

An event occurs when Cimatron E gets the lock information of a locked document. This happens when the system attempts to write-access the document and the attempt fails.

This method takes the full path of the document. If you override the default processing of the event, it returns the lock information (string) of the document.

See AfterGetLockInfo.

Syntax

oLockInfo, oMode = BeforeGetLockInfo(iApp, iData, iOperation, iDocPath)

Input: (Object) iApp

Pointer to the application.

Input: (Variant) iData

Not applicable.

Input: (Long) iOperation

A unique number, relative to the Cimatron E session, which identifies each event. For two consecutive events, the second (later) event will be identified by a greater number than the first.

This identifier is passed to both the Before and After methods of the event.

This gives you the ability to determine the scope of an event. Otherwise, due to event nesting, it would be difficult to associate a pair of Before and After method calls with one event.

Input: (String) iDocPath

Full path name of the .elt file.

Return: (String) oLockInfo

Lock information of the document.

Return: (Integer) oMode

The event process mode as defined by the user:

Process

The user processes the event.

Continue

The user passes the control to Cimatron E; the default processing of the event will be performed.

Cancel

The user cancels the event’s processing.

 

Return to Cimatron Index


Your Ad Here