Eplan Platform API
Eplan.EplApi.HEServices Namespace / ChangeInfoService Class
Members Example

ChangeInfoService Class
This class contains methods for activating and deactivating change info handling.
Inheritance Hierarchy

System.Object
   Eplan.EplApi.HEServices.ChangeInfoService

Syntax
public class ChangeInfoService 
Example
Setting .ArticleTimeStampActive
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";

Setting .ChangeAndCreateInfoUpdateForPage
//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());

Public Constructors
 NameDescription
Public ConstructorConstructor.  
Top
Public Properties
 NameDescription
Public PropertyActivate or deactivate change info handling.  
Public PropertyActivate or deactivate article time stamp handling.  
Public PropertyActivate or deactivate AUTOPAGECHANGED info handling.  
Public PropertyActivate or deactivate automatic change/create information update for a page.  
Public PropertyActivate or deactivate connection dirty bit handling.  
Public PropertyActivate or deactivate change info handling if object belongs to page.  
Top
Public Methods
 NameDescription
Public MethodDestructor  
Public MethodRestore previous operation mode.  
Public MethodActivate or deactivate change info handling. Helper will switch mode automatically back due to destruction.  
Public MethodActivate or deactivate AUTOPAGECHANGED change info handling. Helper will switch mode automatically back due to destruction.  
Public MethodActivate or deactivate automatic change/create information update for a page. Helper will switch mode automatically back due to destruction.  
Public MethodActivate or deactivate connection dirty bit handling. Helper will switch mode automatically back due to destruction.  
Public MethodActivate or deactivate change info handling if object belongs to page. Helper will switch mode automatically back due to destruction.  
Top
See Also