System.Object
EPLAN.Harness.API.DataStructures.BaseAppearanceInfo
EPLAN.Harness.API.DataStructures.Appearance.HatchInfo
System.Object
EPLAN.Harness.API.DataStructures.BaseAppearanceInfo
EPLAN.Harness.API.DataStructures.Appearance.HatchInfo
public class HatchInfo : EPLAN.Harness.API.DataStructures.BaseAppearanceInfo
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."); }
Name | Description | |
---|---|---|
Name | Name of this appearance. (Inherited from EPLAN.Harness.API.DataStructures.BaseAppearanceInfo) | |
Preview | Overridden. Preview of this appearance. |
Name | Description | |
---|---|---|
Equals | Is this appearance equal to the following object? (Inherited from EPLAN.Harness.API.DataStructures.BaseAppearanceInfo) | |
GetHashCode | Serves as the default hash function. (Inherited from EPLAN.Harness.API.DataStructures.BaseAppearanceInfo) |