Click or drag to resize

AssignmentManager Class

A wrapped assignment manager with static methods to allow for handling of material assignments.
Inheritance Hierarchy
SystemObject
  ema3d.Api.V25.Core.DefinitionsAssignmentManager

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

The AssignmentManager type exposes the following members.

Methods
 NameDescription
Public methodStatic memberAssignPEC(IDocObject, Document) Assign PEC material definition to a single document object.
Public methodStatic memberAssignPEC(ListIDocObject, Document) Assign PEC material definition to a collection of document objects.
Public methodStatic memberAssignPMC(IDocObject, Document) Assign PMC material definition to a single document object.
Public methodStatic memberAssignPMC(ListIDocObject, Document) Assign PMC material definition to a collection of document objects.
Public methodStatic memberHasDefinition Checks if a material definition is assigned to a IDocObject.
Public methodStatic memberRemoveBulk Remove material definitions from a collection of document objects.
Public methodStatic memberRemoveSingle Remove material definition from a single document object.
Top
Example
Python
from ema3d.Api.V25.Core.Definitions import AssignmentManager as AssignmentManager

# 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
AssignmentManager.AssignPEC(faces)
See Also