Harness proD API Help
EPLAN.Harness.API.Occurrences.Nailboard Namespace / WireHarnessNbComponent Class
Members Example
In This Topic
    WireHarnessNbComponent Class
    In This Topic
    Wire harness component.
    Object Model
    WireHarnessNbComponent ClassLengthProperty ClassOccNbWireHarness ClassLengthProperty Class
    Inheritance Hierarchy

    System.Object
       EPLAN.Harness.API.Occurrences.Nailboard.WireHarnessNbComponent

    Syntax
    public class WireHarnessNbComponent 
    Example
    This example shows how to place all components of a wire harness above each other.
    // Get Wire harness occurrence from Nailboard drawing.
    OccNbWireHarness harness = GetWireHarness();
    
    // Start from point [0;0].
    LengthProperty xPosition = new LengthProperty(0, Unit.Millimeter);
    LengthProperty yPosition = new LengthProperty(0, Unit.Millimeter);
    					
    foreach (WireHarnessNbComponent comp in harness.WireHarnessComponents)
    {
    	comp.Position = new Transform2DProperty<LengthProperty>(xPosition, yPosition);
    	
    	// Next wire harness component above the current one.
    	yPosition += comp.Height;
    }
    Public Properties
     NameDescription
    Public PropertyOccurrences from which this wire harness component is rendered.  
    Public PropertyHeight of the wire harness component in drawing.  
    Public PropertyThe parent wire harness occurrence.  
    Public Property Gets the 2D position in drawing.  
    Public PropertyWidth of the wire harness component in drawing.  
    Top
    See Also