System.Object
Eplan.EplApi.HEServices.ChangeInfoService
System.Object
Eplan.EplApi.HEServices.ChangeInfoService
using (var changeInfoService = new ChangeInfoService { ArticleTimeStampActive = false }) { part.Properties.PART_LASTCHANGE_DATE = new DateTime(1977, 4, 26); part.Properties.PART_LASTCHANGE_USER = "TEST_USER"; part.Properties.ARTICLE_DESCR1 = "test_123"; } //set properties with 'normal' timestamp settings. Will set automatically current time and user part.Properties.PART_LASTCHANGE_DATE = new DateTime(1977, 4, 26); part.Properties.PART_LASTCHANGE_USER = "TEST_USER"; part.Properties.ARTICLE_DESCR1 = "test_123";
//deactivate automatic change/create information update using (var changeInfoService = new ChangeInfoService { ChangeAndCreateInfoUpdateForPage = false }) { //make artificial change just to check modification date and user var text1 = new Eplan.EplApi.DataModel.Graphics.Text(); text1.Create(page, "", 10.0); text1.Remove(); //output changes Console.WriteLine(page.Properties.PAGE_LASTAUTOMODIFICATIONDATE.ToString()); Console.WriteLine(page.Properties.PAGE_LASTAUTOMODIFICATIONTIME.ToString()); Console.WriteLine(page.Properties.PAGE_LASTMODIFICATOR.ToString()); } var text2 = new Eplan.EplApi.DataModel.Graphics.Text(); text2.Create(page, "", 10.0); text2.Remove(); //output changes Console.WriteLine(page.Properties.PAGE_LASTAUTOMODIFICATIONDATE.ToString()); Console.WriteLine(page.Properties.PAGE_LASTAUTOMODIFICATIONTIME.ToString()); Console.WriteLine(page.Properties.PAGE_LASTMODIFICATOR.ToString());
Name | Description | |
---|---|---|
ChangeInfoService Constructor | Constructor. |
Name | Description | |
---|---|---|
Active | Activate or deactivate change info handling. | |
ArticleTimeStampActive | Activate or deactivate article time stamp handling. | |
AutoPageChangedFlag | Activate or deactivate AUTOPAGECHANGED info handling. | |
ChangeAndCreateInfoUpdateForPage | Activate or deactivate automatic change/create information update for a page. | |
ConnectionDirtyActive | Activate or deactivate connection dirty bit handling. | |
Obj2PageActive | Activate or deactivate change info handling if object belongs to page. |
Name | Description | |
---|---|---|
Dispose | Destructor | |
RestoreOperationMode | Restore previous operation mode. | |
SetActive | Activate or deactivate change info handling. Helper will switch mode automatically back due to destruction. | |
SetAutoPageChangedFlag | Activate or deactivate AUTOPAGECHANGED change info handling. Helper will switch mode automatically back due to destruction. | |
SetChangeAndCreateInfoUpdateForPage | Activate or deactivate automatic change/create information update for a page. Helper will switch mode automatically back due to destruction. | |
SetConnectionDirtyActive | Activate or deactivate connection dirty bit handling. Helper will switch mode automatically back due to destruction. | |
SetObj2PageActive | Activate or deactivate change info handling if object belongs to page. Helper will switch mode automatically back due to destruction. |