![]() | Line |
The LineBarrier type exposes the following members.
Name | Description | |
---|---|---|
![]() | BarrierColor | Gets/Sets color to render the barrier geometry. |
![]() | Capacitance | Gets/Sets capacitance of barrier. |
![]() | DisplayColor | Gets/Sets color to render the geometry. |
![]() | DisplayName | Gets/Sets the display name |
![]() | ImpedanceType | Gets/Sets type of impedance specification. |
![]() | Inductance | Gets/Sets inductance of barrier. |
![]() | Resistance | Gets/Sets resistance of barrier. |
Name | Description | |
---|---|---|
![]() ![]() | Create | Creates a line barrier |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
![]() ![]() | GetDefinitions | Gets all Isotropic Material definitions in a document. |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object) |
![]() ![]() | GetNames | Gets a list of all material names in the document, can be used to easily access definitions via GetDefinitions(Document) method. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object) |
from ema3d.Api.V25.Core.Definitions import LineBarrier as LineBarrier from ema3d.Api.V25.Core.Definitions import BarrierShape as BarrierShape from ema3d.Api.V25.Core.Definitions import BarrierImpedanceType as BarrierImpedanceType # Set Sketch Plane result = ViewHelper.SetSketchPlane(Plane.PlaneXY) # Sketch Rectangle point1 = Point2D.Create(MM(-10),MM(-10)) point2 = Point2D.Create(MM(10),MM(-10)) point3 = Point2D.Create(MM(10),MM(10)) result = SketchRectangle.Create(point1, point2, point3) # Solidify Sketch result = ViewHelper.SetViewMode(InteractionMode.Solid) # Assign to surface body = result.GetCreated[IDesignBody]()[0] _faces, _edges = body.Faces, body.Edges _barrier = LineBarrier.Create(Window.ActiveWindow.Document, BarrierShape.Line, [], _edges, _faces) _barrier.Resistance = 1e3 _barrier.ImpedanceType = BarrierImpedanceType.Density