Click or drag to resize

PinCurrent Class

An MHARNESS Pin Current source attached to the end of some cable.
Inheritance Hierarchy
SystemObject
  ema3d.Api.V25APISimObjectBasePinCurrent
    ema3d.Api.V25.Core.ExcitationExcitationBasePinCurrent
      ema3d.Api.V25.Cabling.ExcitationPinCurrent

Namespace: ema3d.Api.V25.Cabling.Excitation
Assembly: ema3d.Api.V25 (in ema3d.Api.V25.dll) Version: 0.0.0.0
Syntax
public sealed class PinCurrent : ExcitationBase<PinCurrent>, 
	IHasSegment, IHasCable

The PinCurrent type exposes the following members.

Properties
 NameDescription
Public propertyCable The cable this item is attached to.
Public propertyDisplayName Gets/Sets the display name of the underlying sim object.
(Inherited from APISimObjectBaseTWrapper)
Public propertyDocument The document an object exists in.
(Inherited from ExcitationBaseT)
Public propertyEnd The end of the Segment this source lies on.
Public propertySegment The segment this item is located on.
Public propertySimulation The Simulation an object exists in.
(Inherited from ExcitationBaseT)
Top
Methods
 NameDescription
Public methodStatic memberCreate Create a new PinCurrent source at a given segment and cable end.
Public methodDelete Deletes sim object.
(Inherited from APISimObjectBaseTWrapper)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic memberGetAll Retrieve all PinCurrent objects in the document.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLocation Gets the point location of this element.
Public methodGetName Returns the name of the object.
(Inherited from APISimObjectBaseTWrapper)
Public methodGetSiblings Get all objects that share this object's type in the document.
(Overrides APISimObjectBaseTWrapperGetSiblings(Document))
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodMove Move this source to a new segment and end.
Public methodSetName Sets the name of the object
(Inherited from APISimObjectBaseTWrapper)
Public methodSetVisibility Sets the visibility status of the object.
(Inherited from APISimObjectBaseTWrapper)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Example
Python
from ema3d.Api.V25.Cabling.Excitation import PinCurrent as PinCurrent
import ema3d.Api.V25.Cabling as Cabling
# Grab an existing conductor and attach a new pincurrent source
_cond = Cabling.Conductor.GetAll()[0]
_pincurrent = PinCurrent.Create(segment, Cabling.Excitation.EndType.Start, _cond)
_pincurrent.DisplayName = "Test Pin Current"
# Attach a new signal to the data
_sine = Signals.SineSquaredSignal.Create()
_sine.AttachTo(_pincurrent)
See Also