System.Object
Eplan.EplApi.DataModel.SafetyPoint
System.Object
Eplan.EplApi.DataModel.SafetyPoint
var project = new ProjectManager {LockProjectByDefault = false}.OpenProject(@"$(MD_PROJECTS)\EPLAN-DEMO.elk"); //view placement '8' (on page =EB3+ETM/4) ViewPlacement viewPlacement8 = project .Pages[42] .AllFirstLevelPlacements .OfType<ViewPlacement>() .FirstOrDefault(item => item.Properties.DMG_VIEWPLACEMENT_DESIGNATION.ToString() == "8"); using (SafetyPoint safetyPoint = SafetyPoint.Create()) { Console.WriteLine(viewPlacement8.IsLocked); //false viewPlacement8.Scale = 44.44; //set another scale Console.WriteLine(viewPlacement8.IsLocked); //true safetyPoint.Commit(); //necessary, otherwise changes from the block are rolled-back } Console.WriteLine(viewPlacement8.IsLocked); //again false
Name | Description | |
---|---|---|
Commit | All changes done up to this point should be accepted. Locked objects are freed. | |
Create | Creates SafetyPoint object and starts recording changes. | |
Dispose | Virtual deterministic destructor. | |
GetAutoLockingState | Gets internal AutoLocking flag. When it's true AutoLocking is active. | |
Rollback | All recorded changed (if any) will be undone without redo. | |
Start | Start recording changes. If already started, has no effect. |
SafetyPoint Members
Eplan.EplApi.DataModel Namespace
Locking.html