Click or drag to resize

LineBarrier Class

Line Barrier Class fore creating seams / joints
Inheritance Hierarchy
SystemObject
  ema3d.Api.V25.Core.DefinitionsLineBarrier

Namespace: ema3d.Api.V25.Core.Definitions
Assembly: ema3d.Api.V25 (in ema3d.Api.V25.dll) Version: 0.0.0.0
Syntax
public sealed class LineBarrier

The LineBarrier type exposes the following members.

Properties
 NameDescription
Public propertyBarrierColor Gets/Sets color to render the barrier geometry.
Public propertyCapacitance Gets/Sets capacitance of barrier.
Public propertyDisplayColor Gets/Sets color to render the geometry.
Public propertyDisplayName Gets/Sets the display name
Public propertyImpedanceType Gets/Sets type of impedance specification.
Public propertyInductance Gets/Sets inductance of barrier.
Public propertyResistance Gets/Sets resistance of barrier.
Top
Methods
 NameDescription
Public methodStatic memberCreate Creates a line barrier
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic memberGetDefinitions Gets all Isotropic Material definitions in a document.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetNames Gets a list of all material names in the document, can be used to easily access definitions via GetDefinitions(Document) method.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Example
Python
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
See Also