Click or drag to resize

DefinitionBaseT Class

Base API class for EM definitions. Changes to any definition will propagate to all child documents
Inheritance Hierarchy
SystemObject
  ema3d.Api.V25APISimObjectBaseT
    ema3d.Api.V25.Core.DefinitionsDefinitionBaseT
      More

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

Type Parameters

T
DefinitionBase type

The DefinitionBaseT type exposes the following members.

Properties
 NameDescription
Public propertyDisplayColor Gets / Sets the definition display color.
Public propertyDisplayName Gets/Sets the display name of the underlying sim object.
(Overrides APISimObjectBaseTWrapperDisplayName)
Top
Methods
 NameDescription
Public methodAssignBulk Assign a material definition to a collection of document objects.
Public methodAssignSingle Assign a material definition to a single document object.
Public methodDelete Deletes sim object.
(Inherited from APISimObjectBaseTWrapper)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
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.
(Inherited from APISimObjectBaseTWrapper)
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 IsotropicDefinition as IsotropicDefinition
# Create Definition
_idef = IsotropicDefinition.Create()
_icopy = _idef.Copy()
# Delete Old Definition
_idef.Delete()

# 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
faces = result.GetCreated[IDesignBody]()[0].Faces
_icopy.AssignBulk(faces)
See Also
Inheritance Hierarchy