public interface IOccConductiveShield : EPLAN.Harness.API.Interfaces.IApiObject, I3DOccurrence, ICableSublayer, IControlPath, IControlPathWithEnds, IGraphicalOccurrence, IOccShield, IOccurrence, IReconnectable, IUserDefinedProperties
public interface IOccConductiveShield : EPLAN.Harness.API.Interfaces.IApiObject, I3DOccurrence, ICableSublayer, IControlPath, IControlPathWithEnds, IGraphicalOccurrence, IOccShield, IOccurrence, IReconnectable, IUserDefinedProperties
// Init API at first. HpdApi api = HpdApi.GetInstance(); // Open document. Project project = api.OpenProject(@"d:\MyProject.hxproj"); Variant variant = project.GetVariants()[0]; Designer designer = variant.GetWorkdesks().FirstOrDefault(d => d.Name == "Workdesk_1"); designer.Open(false, false); // Select cable. IOccCable cable = designer.GetAllOccurrences().OfType<IOccCable>().FirstOrDefault(c => c.Name == "ca_00013"); // Select its conductive shield. IOccConductiveShield shield = cable.CableSubParts.OfType<IOccConductiveShield>().FirstOrDefault(s => s.Name == "Shield 1"); // Select connector 1. IOccConnector connector1 = designer.GetAllOccurrences().OfType<IOccConnector>().FirstOrDefault(c => c.Name == "cn_00009"); // Find matching connected pin. IPinBase pin1 = connector1.Children.OfType<IOccGroupedPin>().FirstOrDefault(tempPin1 => shield.GetConnectedPins().Any(tempPin2 => tempPin1.ID == tempPin2.ID)); // Select connector 2. IOccConnector connector2 = designer.GetAllOccurrences().OfType<IOccConnector>().FirstOrDefault(c => c.Name == "cn_00007"); // Select second pin. IPinBase pin2 = connector2.Children.OfType<IOccGroupedPin>().FirstOrDefault(); // Reconnect shield. shield.Reconnect(pin1, pin2); // Save changes and close documents. designer.Save(); designer.Close(); project.Close();
Name | Description | |
---|---|---|
BendingRadiiCheck | Gets or sets the value of the 'Bending radii check' property of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.ICableSublayer) | |
BendingRadius | Gets the bending radius of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.ICableSublayer) | |
CableLength | Gets the cable length of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.ICableSublayer) | |
Children | Gets children occurrences of closest level in hierarchy of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccurrence) | |
Color | Gets the color of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccShield) | |
ConnectedPins | Gets the names of pins to which this conductive shield is connected. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccShield) | |
CrossSection | Get or set the cross section of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccShield) | |
ID | Identifier of the API object. (Inherited from EPLAN.Harness.API.Interfaces.IApiObject) | |
Imprint | Gets or sets the imprint of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccShield) | |
Interpolation | Gets or sets the interpolation algorithm of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.ICableSublayer) | |
IsConnected | Returns false if both ends of the shield are not connected to a pin. | |
IsRapid | Is the part a rapid prototype? (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccurrence) | |
IsTopLayer | Specifies if this cable's sublayer is the top layer of the cable. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.ICableSublayer) | |
IsValid | Is occurrence valid? (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccurrence) | |
Length | Gets the length of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IControlPath) | |
MaterialCode | Gets the material code of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccShield) | |
Name | Gets or sets the name of the occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.I3DOccurrence) | |
OutsideDiameter | Get or set the outside diameter of this occurrence. Note: In the case of the rapid prototype cables, the outside diameter should be set on the top-level insulator. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IControlPathWithEnds) | |
Parents | Gets parent occurrences of closest level in hierarchy of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IOccurrence) | |
RawLength | Gets the raw length of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.ICableSublayer) | |
Selectable | Gets or sets the value of 'Selectable' property of this occurrence. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.ICableSublayer) | |
ShieldWire | Returns an occurrence of the shield wire representing this conductive shield. | |
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>) | |
GetConnectedPins | Gets pins to which this wire is connected. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IReconnectable) | |
GetControlPoints | Gets all control point on this control path. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IControlPath) | |
Reconnect | Reconnect this shield from one grouped pin to another. (Inherited from EPLAN.Harness.API.Occurrences.Interfaces.IReconnectable) |