EntityClass
The EntityClass class represents an entity class.
Fields
Field | Type | Description |
---|---|---|
name | string | The class name. |
builtIn | boolean | Read only. True if the domain is built-in and therefore cannot be modified. |
color | Color | The background color behind the class title. |
weight | number | The default weight for new edges created along with entities of this class, as a value between -1.0 and 1.0. |
symbol | Symbol | The symbol inherited by new entities of this class. |
milestone | boolean | True if entities derived from this class should be a milestone (zero effort) task, otherwise False. |
resourceAssignment | Resource Assignment Type | The default resource assignment for entities derived from this class should be a milestone (zero effort) task, otherwise False. |
showName | boolean | True if the class name should be shown, defaults to True. |
domain | Domain | Read only. The parent domain of this class. |
nameColor | Color | Read only. The color that the name of the entity class would be rendered in an entity. |
Methods
duplicate( )
Creates and returns a unique duplicate of this class with the name modified to include “copy,” as an EntityClass.