Definition |
public abstract class DefinitionBase<T> : APISimObjectBase<T> where T : DefinitionBase<T>
The DefinitionBaseT type exposes the following members.
| Name | Description | |
|---|---|---|
| DisplayColor | Gets / Sets the definition display color. | |
| DisplayName |
Gets/Sets the display name of the underlying sim object.
(Overrides APISimObjectBaseTWrapperDisplayName) |
| Name | Description | |
|---|---|---|
| AssignBulk | Assign a material definition to a collection of document objects. | |
| AssignSingle | Assign a material definition to a single document object. | |
| Delete |
Deletes sim object.
(Inherited from APISimObjectBaseTWrapper) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetName |
Returns the name of the object.
(Inherited from APISimObjectBaseTWrapper) | |
| GetSiblings |
Get all objects that share this object's type in the document.
(Inherited from APISimObjectBaseTWrapper) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| SetName |
Sets the name of the object
(Inherited from APISimObjectBaseTWrapper) | |
| SetVisibility |
Sets the visibility status of the object.
(Inherited from APISimObjectBaseTWrapper) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
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)