System.Object
Eplan.EplApi.DataModel.LockingStep
System.Object
Eplan.EplApi.DataModel.LockingStep
void MyModelessDialog::DoProcessing() { using(LockingStep oLS = new LockingStep()) { // ... accessing P8 data ... } }
Dim oEplApp As EplApplication = New EplApplication Dim strAppModifier As System.String = "" oEplApp.Init(strAppModifier) Dim pm As Eplan.EplApi.DataModel.ProjectManager Dim p As Eplan.EplApi.DataModel.Project Dim l As LockingStep l = New LockingStep pm = New ProjectManager 'pm.LockByDefault = true 'true by default in ProjectManager p = pm.CreateProject("C:\\Program Files\\EPLAN\\Electric P8\\Projects\\EPLAN\\ESS_Sample_Project.elk", "C:\\Program Files\\EPLAN\\Electric P8\\Templates\\ESS\\ESS_Sample_Project.epb") 'project is locked 'Initialize() 'Processing(p) p.Close() 'normally unlocks project l.Dispose() 'unlocking all projects that were locked in this locking step oEplApp.Exit()
Name | Description | |
---|---|---|
LockingStep Constructor | Starts a locking step. ManualLocking mode is set to ON; Gets the position in LockingVector (in order to restore locking state when LockingStep is disposed). |
Name | Description | |
---|---|---|
Dispose | Ends a locking step (identified by internal nLockingStepId). ManualLocking mode is set to its previous value; Original locking state is restored. The same as !LockingStep. |
LockingStep Members
Eplan.EplApi.DataModel Namespace
Locking.html
LockingVector Class