Click or drag to resize

ThinGapDefinition Class

A Thin Gap definition in EMA3D API.
Inheritance Hierarchy
SystemObject
  ema3d.Api.V25APISimObjectBaseThinGapDefinition
    ema3d.Api.V25.Core.DefinitionsDefinitionBaseThinGapDefinition
      ema3d.Api.V25.Core.DefinitionsThinGapDefinition

Namespace: ema3d.Api.V25.Core.Definitions
Assembly: ema3d.Api.V25 (in ema3d.Api.V25.dll) Version: 0.0.0.0
Syntax
public class ThinGapDefinition : DefinitionBase<ThinGapDefinition>

The ThinGapDefinition type exposes the following members.

Properties
 NameDescription
Public propertyConductivity Gets/Sets conductivity of thin gap.
Public propertyDisplayColor Gets / Sets the definition display color.
(Inherited from DefinitionBaseT)
Public propertyDisplayName Gets/Sets the display name of the underlying sim object.
(Inherited from DefinitionBaseT)
Public propertyPermittivity Gets/Sets permittivity of thin gap.
Public propertyWidth Gets/Sets width of thin gap.
Top
Methods
 NameDescription
Public methodAssignBulk Assign a material definition to a collection of document objects.
(Inherited from DefinitionBaseT)
Public methodAssignSingle Assign a material definition to a single document object.
(Inherited from DefinitionBaseT)
Public methodCopy Copy this definition to the same or a new document
Public methodStatic memberCreate Create a new default This Gap Definition within the document
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 ThinGapDefinition objects in the document.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
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 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.Core.Definitions import ThinGapDefinition as ThinGapDefinition

# 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)

# Set Thin Gap
thindef = ThinGapDefinition.Create()
thindef.Width = 1e-3
thindef.Conductivity = 100
thindef.Permittivity = 100
thindef.Name = "Thin Gap Definition"
# Assign to an edge
thinEdge = result.GetCreated[IDesignBody]()[0].Edges[0]
thindef.AssignSingle(thinEdge)
See Also