Command: entity

Syntax

entity <ident> { = <command> }

Description

Declare or redefine an entity identifier and (optionally) its graphics.

Parameters

Switches

None

Notes

Entity identifiers can have global scope only.

The graphics of an entity are set by various modeling commands: lines, vector, arc, node etc.

When an entity is deleted, via the delid command, its graphics are also destroyed.

Examples

Create an entity identifier.

entity my_ent

Create an entity and make it a lines entity.

entity diamond = lines {
    gc, e:100&n:100, w:100&n:100
    w:100&s:100, r
}

See Also

Commands:

arc, cell, circle, ellipse, get, glabel, group, gtext, lines, node, polygon, polynode, prism, rect, route, vector

Identifiers:

scope (atable), this (epointer)

Structures:

entity