Eplan Platform API
Eplan.EplApi.DataModel Namespace / PropertyValue Class / IsEmpty Property
Example

In This Topic
    IsEmpty Property (PropertyValue)
    In This Topic

    Checks if the property is empty. If it's not, it could be read.

    IMPORTANT: If property is indexed, you have to set the index.

    Syntax
    public bool IsEmpty {get;}
    public:
    property bool IsEmpty {
       bool get();
    }
    Remarks

    On an indexed property you need to check "IsEmpty" for each property index that you want to get:

    if(propertyValue[10].IsEmpty){}

    If you want to empty a property, just create a new property and assign it to the Property:

    {object}.{Properties}.{property id} = new PropertyValue()

    Example
    oConnection.Properties.CONNECTION_WIRENUMBER = new PropertyValue();
    Console.Out.WriteLine(oConnection.Properties.CONNECTION_WIRENUMBER.IsEmpty.ToString()); // The property is empty
    oConnection.Properties.CONNECTION_WIRENUMBER = 1;
    Console.Out.WriteLine(oConnection.Properties.CONNECTION_WIRENUMBER.IsEmpty.ToString()); // Now the property isn't empty anymore
    
    
    See Also