PLGetElementType

<< Click to Display Table of Contents >>

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

PLGetElementType

Previous page Next page

PURPOSE

Retrieve the Type of the element identified by an element index from the database.

SYNTAX

PLGetElementType( DatabaseName, ElementIndex )

PARAMETERS

DatabaseName (Character String)

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

ElementIndex (Integer)

The index of the element (from 1 to number of elements).

OUTPUT

An integer value containing one of the following values:

1

Beam Element

2

Spring Element

3

Articulation Element

4

Damper Element

If an error occurs, one of the following error codes will be returned:

-999999999

Invalid Input (Element index out of range).

-999999998

Invalid Database.

SEE ALSO

Error Codes

PLGetElementCount

Back to Table of Contents