Harness proD API Help
EPLAN.Harness.API.Occurrences.Interfaces Namespace / IRotateable Interface
Members Example
In This Topic
    IRotateable Interface
    In This Topic
    An occurrence that can be rotated in the designer.
    Object Model
    IRotateable InterfaceBooleanProperty ClassTextProperty Class
    Syntax
    Example
    The following example shows how to rotate all rotateable occurrences in the designer.
    // Workspace or workdesk.
    Designer designer = ...
    
    IEnumerable<IRotateable> occurrences = designer.GetAllOccurrences().OfType<IRotateable>();
    foreach (IRotateable occ in occurrences)
    {
    	// Rotate each occurrence in the X axis.
    	occ.Rotation = new TransformProperty<AngleProperty>(new AngleProperty(occ.Rotation.X.Value + 20, occ.Rotation.X.Unit), occ.Rotation.Y, occ.Rotation.X);
    }
    
    designer.Save();
    Public Properties
     NameDescription
     Property Gets children occurrences of closest level in hierarchy of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccurrence)
     Property Identifier of the API object. (Inherited from EPLAN.Harness.API.Interfaces.IApiObject)
     Property Is the part a rapid prototype? (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccurrence)
     Property Is occurrence valid? (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccurrence)
     Property Gets or sets the name of the occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.I3DOccurrence)
     Property Gets parent occurrences of closest level in hierarchy of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccurrence)
     Property Gets or sets the rotation of this occurrence.  
     Property Gets or sets a list of user-defined properties of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IUserDefinedProperties)
    Top
    Public Methods
     NameDescription
     Method (Inherited from System.IEquatable<IOccurrence>)
    Top
    See Also