Harness proD API Help
EPLAN.Harness.API.DataStructures.Appearance Namespace / HatchInfo Class
Members Example
In This Topic
    HatchInfo Class
    In This Topic
    Information about hatch.
    Object Model
    HatchInfo ClassTextProperty Class
    Inheritance Hierarchy

    System.Object
       EPLAN.Harness.API.DataStructures.BaseAppearanceInfo
          EPLAN.Harness.API.DataStructures.Appearance.HatchInfo

    Syntax
    Example
    This example shows how to obtain a HatchInfo from connected library.
    Project project = ...
    OccNbInsulator occurrence = ...
    
    ActiveLibraryConnection activeLibrary = null;
    try
    {
    	activeLibrary = project.ActiveConnection;
    	if (activeLibrary == null)
    	{
    		Console.WriteLine("The active library is not available.");
    	}
    	else
    	{
    		HatchInfo hatch = activeLibrary.GetHatches().FirstOrDefault(h => h.Name.Value == "My favourite hatch");
    		if (hatch == null)
    		{
    			Console.WriteLine("Active library does not contain this hatch.");
    		}
    		else
    		{
    			occurrence.Hatch = hatch;
    		}
    	}
    }
    catch (API.Exceptions.NoActiveLibraryException ex)
    {
    	Console.WriteLine("There is no active library connection in this project.");
    }
    Public Properties
     NameDescription
    Public PropertyName of this appearance. (Inherited from EPLAN.Harness.API.DataStructures.BaseAppearanceInfo)
    Public PropertyOverridden. Preview of this appearance.  
    Top
    Public Methods
     NameDescription
    Public MethodIs this appearance equal to the following object? (Inherited from EPLAN.Harness.API.DataStructures.BaseAppearanceInfo)
    Public MethodServes as the default hash function. (Inherited from EPLAN.Harness.API.DataStructures.BaseAppearanceInfo)
    Top
    See Also