Interface IProperty_Base
Base mutable property interface used to indicate elements which are properties
Inherited Members
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public interface IProperty_Base : IElement, IReadOnlyProperty_Base, IReadOnlyElement, IAmlNode
Methods
| Improve this Doc View SourceSet(Object)
Set the value of the property
Declaration
void Set(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Value to set the property to |
Remarks
If the property does not exist (Exists = false
),
but it's parent does exist, the property is added to it's parent
Examples
// If the part was created after 2016-01-01, put the name of the creator in the description
if (comp.CreatedOn().AsDateTime(DateTime.MaxValue) > new DateTime(2016, 1, 1))
{
edits.Property("description").Set("Created by: " + comp.CreatedById().KeyedName().Value);
}