Harness proD API Help
EPLAN.Harness.API.Occurrences.Interfaces Namespace / ITranslatable Interface
Members Example
In This Topic
    ITranslatable Interface
    In This Topic
    An occurrence that can be translated in the designer.
    Object Model
    ITranslatable InterfaceBooleanProperty ClassTextProperty Class
    Syntax
    Example
    The following example shows how to translate all translatable occurrences in the designer.
    // Workspace or workdesk.
    Designer designer = ...
    
    IEnumerable<ITranslatable> occurrences = designer.GetAllOccurrences().OfType<ITranslatable>();
    foreach (ITranslatable occ in occurrences)
    {
    	// Move each occurrence to zero in Z axis.
    	occ.Position = new TransformProperty<LengthProperty>(occ.Position.X, occ.Position.Y, new LengthProperty(0, occ.Position.Z.Unit));
    }
    
    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 position 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