public interface ITranslatable : EPLAN.Harness.API.Interfaces.IApiObject, I3DOccurrence, IOccurrence, IUserDefinedProperties
public interface ITranslatable : EPLAN.Harness.API.Interfaces.IApiObject, I3DOccurrence, IOccurrence, IUserDefinedProperties
// 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();
Name | Description | |
---|---|---|
Children | Gets children occurrences of closest level in hierarchy of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccurrence) | |
ID | Identifier of the API object. (Inherited from EPLAN.Harness.API.Interfaces.IApiObject) | |
IsRapid | Is the part a rapid prototype? (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccurrence) | |
IsValid | Is occurrence valid? (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccurrence) | |
Name | Gets or sets the name of the occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.I3DOccurrence) | |
Parents | Gets parent occurrences of closest level in hierarchy of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccurrence) | |
Position | Gets or sets the position of this occurrence. | |
UserDefinedProperties | Gets or sets a list of user-defined properties of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IUserDefinedProperties) |
Name | Description | |
---|---|---|
Equals | (Inherited from System.IEquatable<IOccurrence>) |