Harness proD API Help
EPLAN.Harness.API.Occurrences.CableDrawing Namespace / CableUnitCdComponent Class
Members Example
In This Topic
    CableUnitCdComponent Class
    In This Topic
    Cable unit component (sub-cable unit).
    Object Model
    CableUnitCdComponent ClassLengthProperty ClassOccCdCableUnit ClassLengthProperty Class
    Inheritance Hierarchy

    System.Object
       EPLAN.Harness.API.Occurrences.CableDrawing.CableUnitCdComponent

    Syntax
    public class CableUnitCdComponent 
    Example
    This example shows how to place all components of a cable unit next to each other.
    // Get Cable unit occurrence from Cable drawing.
    OccCdCableUnit cableUnit = GetCableUnit();
    
    // Start from point [0;0].
    LengthProperty xPosition = new LengthProperty(0, Unit.Millimeter);
    LengthProperty yPosition = new LengthProperty(0, Unit.Millimeter);
    					
    foreach (CableUnitCdComponent comp in occ.CableUnitComponents)
    {
    	comp.Position = new Transform2DProperty<LengthProperty>(xPosition, yPosition);
    
    	// Next wire harness component next to the current one.
    	xPosition += comp.Width;
    }
    Public Properties
     NameDescription
    Public PropertyOccurrences of which this cable unit component is composed.  
    Public PropertyHeight of the cable unit component in drawing.  
    Public PropertyThe parent cable unit occurrence.  
    Public Property Gets the 2D position in drawing.  
    Public PropertyWidth of the cable unit component in drawing.  
    Top
    See Also