Eplan Platform API
Eplan.EplApi.DataModel Namespace / StorableObject Class / FromStringIdentifier Method / FromStringIdentifier(String,UInt16) Method
The string identifier for the object. This string has to be created with the ToString() function.
The database id the object belongs to. The database id can change when the project is closed and opened again.

In This Topic
    FromStringIdentifier(String,UInt16) Method
    In This Topic
    Returns this object created from the string identifier
    Syntax
    public static StorableObject FromStringIdentifier( 
       string strObject,
       ushort nId
    )
    public:
    static StorableObject^ FromStringIdentifier( 
       String^ strObject,
       ushort nId
    ) 

    Parameters

    strObject
    The string identifier for the object. This string has to be created with the ToString() function.
    nId
    The database id the object belongs to. The database id can change when the project is closed and opened again.

    Return Value

    The storable object
    Exceptions
    ExceptionDescription
    Exception is thrown when the string is not in the correct format
    Thrown when the object is invalid.
    Remarks
    The string is valid during runtime only. When the project the object belongs to is closed, the string gets invalid.
    See Also