Eplan Platform API
EPLAN API / API Reference / Actions / XEsSetPagePropertyAction
In This Topic
    XEsSetPagePropertyAction
    In This Topic
     sets a special property of selected pages
     
    

    Parameter Description
    PropertyId
    identifier name or number of the property to be set; values are defined in class Eplan::EplApi::DataModel::Properties (in)(obligatory)
    
    PropertyIdentName
    identifier name of the user defined property to be set (in)(obligatory)
    
    PropertyIndex
    if the property has indices, the index; mostly 0 (in)(obligatory)
    
    PropertyValue
    new value of the property (in)(obligatory)
    

    Remarks
    only page properties can be set. 
    
    When PAGE_LASTMANUMODIFICATIONDATE property is set, then PropertyValue has to be formatted this way:
     long milliseconds = (DateTime.Now.Ticks - new DateTime(1970, 1, 1).Ticks) / TimeSpan.TicksPerSecond;
     context.AddParameter("PropertyValue", milliseconds.ToString());
     
    

    Example
    XEsSetPagePropertyAction /PropertyId:? /PropertyIndex:0 /PropertyValue:"?"
     or
     XEsSetPagePropertyAction /PropertyIdentName:? /PropertyIndex:0 /PropertyValue:"?"