Command: pfile

Syntax

{<entity> = } pfile <file> {,<file> ... }

Description

Create a polyline graphic entity from file point data.

Parameters

Switches

Notes

If the command has the form <entity> = pfile, an entity is always created.

If the command has no entity assignment, then an entity will be created only if the -op option is not used, or if the command is not within another entity creation block, e.g. lines, polygon.

When reading from a channel, reads will continue until invalid syntax is encountered, in which case the channel is then positioned so that the next read on the channel will re-read the offending line.

The number of points read is recorded in the system numeric identifier found.

Point data may be in one of the following formats:

Examples

Create an unnamed polyline entity.

pfile points.dat

Create a named polyline entity.

entity my_lines = pfile points.dat

Create a point array from file data.

point myps[] ;# Create an array to receive the values
pfile points.dat,-op=myps

See Also

Commands:

entity, gstructure, lines, open, point, rect

Identifiers:

def_color (color), def_fragment (numeric), def_rank (numeric), found (numeric)

Structures:

entity (lines)