PF_Number Function

Returns a part ID from a part name.

Syntax
PF_Number(part name)

Parameters

  • Name of the part
    Specify the part name (character string).

Return values
Returns the part ID (integer number from 1 to 32) for the specified part name.

Description
Returns -1 if the corresponding part name does not exist.
If multiple parts with the same name exist, the part with the smallest ID will be retrieved.
Cannot be executed from a virtual controller or command window.

Examples

Print "Part1 part number = ", PF_Number("Part1")