pe_factory_linunit

Creates the specified linear unit object

Usage syntax

PE_UNIT pe_factory_linunit (int code);

Parameters
code The code of the predefined linear unit object
Description

Creates the predefined linear unit object with the specified code

Returns

On success, returns the new linear unit object; on failure, returns a null pointer.

Examples

PE_UNIT meter = pe_factory_linunit(PE_U_METER);