API Help
Eplan.EplApi.DataModel Namespace / IncorrectSymbolTypeException Class
Members Example

In This Topic
    IncorrectSymbolTypeException Class
    In This Topic
    This exception is strictly connected with SymbolReference class and inherits from ObjectCreationException. Thrown when given variant in SymbolReference::create() doesn't match to object on which create() was called.
    Inheritance Hierarchy

    System.Object
       System.Exception
          System.ApplicationException
             Eplan.EplApi.Base.BaseException
                Eplan.EplApi.DataModel.DataModelException
                   Eplan.EplApi.DataModel.ObjectCreationException
                      Eplan.EplApi.DataModel.IncorrectSymbolTypeException

    Syntax
    public class IncorrectSymbolTypeException : ObjectCreationException 
    public ref class IncorrectSymbolTypeException : public ObjectCreationException 
    Example
    SymbolVariant variant = project.SymbolLibraries[0 /*First library*/]["COST" /*symbol name*/][0 /* variant */];
    ASSERT ( variant.Symbol.GetType( ) == Symbol.SymbolType.STRANDCONNECTOR_TSN );
    
    MacroBox mBox = new MacroBox ();
    mBox.create( same_page, variant ); // throws IncorrectSymbolTypeException
    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public Property (Inherited from System.Exception)
    Public Property (Inherited from System.Exception)
    Public Property (Inherited from System.Exception)
    Public Property (Inherited from System.Exception)
    Public Property (Inherited from System.Exception)
    Public PropertyReturns the level of message as Eplan.EplApi.Base.MessageLevel. (Inherited from Eplan.EplApi.Base.BaseException)
    Public PropertyReturns number of repetitions of consecutive messages with the same text (i.e. error description) which are joined into one item in the system's message tree. (Inherited from Eplan.EplApi.Base.BaseException)
    Public Property (Inherited from System.Exception)
    Public Property (Inherited from System.Exception)
    Public Property (Inherited from System.Exception)
    Top
    Public Methods
     NameDescription
    Public MethodDestructor for deterministic finalization of BaseException object. (Inherited from Eplan.EplApi.Base.BaseException)
    Public MethodMethod enters a message in the system-wide message tree. (Inherited from Eplan.EplApi.Base.BaseException)
    Public Method (Inherited from System.Exception)
    Public MethodSets a label in the system error message management for getting a section of the 'message tree' (Inherited from Eplan.EplApi.Base.BaseException)
    Public Methodreturns the identifying S- number of a system message (Inherited from Eplan.EplApi.Base.BaseException)
    Public MethodReturns the text of the system message without the index (Inherited from Eplan.EplApi.Base.BaseException)
    Public Method (Inherited from System.Exception)
    Public Method (Inherited from System.Exception)
    Public Method (Inherited from System.Exception)
    Top
    See Also