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

IsEmpty Property (PropertyValue)
Checks if property is empty. If it's not it could be read. IMPORTANT: If property is indexed you have to set index.
Syntax
public bool IsEmpty {get;}
Remarks
On an indexed property you need to check IsIndexed for each property index, you want to get, e.g. 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()); //property is empty now
oConnection.Properties.CONNECTION_WIRENUMBER = 1;
Console.Out.WriteLine(oConnection.Properties.CONNECTION_WIRENUMBER.IsEmpty.ToString()); //property isn't empty now

See Also