PF_Number Method
Description
Gets a part ID from a part name.
Syntax
Function PF_Number (PartName As String) As Integer
Parameters
- PartName
A character string indicating the part name.
Return Value
Returns the part ID (integer number from 1 to 16) for the specified part name.
Remarks
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.
PF_Number Example
VB Example:
Dim part1ID As Integer
Part1ID = m_spel.PF_Number("Part1")
C# Example:
int part1ID;
part1ID = m_spel.PF_Number("Part1");