PLGetElementIndexFromUserElement

<< Click to Display Table of Contents >>

Navigation:  PipeLay > Excel Add-In > Function Reference > Element Functions >

PLGetElementIndexFromUserElement

Previous page Next page

PURPOSE

Retrieve the index of an element identified by its user element number in the database.

SYNTAX

PLGetElementIndexFromUserElement( DatabaseName, UserElementNo )

PARAMETERS

DatabaseName (Character String)

The full path and filename to the relevant database. The file extension is optional.

UserElementNo (Integer)

The user element number

OUTPUT

An integer value containing the index of the element in the database or one of the following error codes:

-999999999

Invalid Input (User Element not found).

-999999998

Invalid Database.

SEE ALSO

Error Codes

PLGetElementCount

PLGetElementStartNode

PLGetElementEndNode

PLGetElementLength

PLGetElementInnerDiameter

PLGetElementOuterDiameter

PLGetUserElementNumber

Back to Table of Contents