![]() | Assignment |
The AssignmentManager type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | AssignPEC(IDocObject, Document) | Assign PEC material definition to a single document object. |
![]() ![]() | AssignPEC(ListIDocObject, Document) | Assign PEC material definition to a collection of document objects. |
![]() ![]() | AssignPMC(IDocObject, Document) | Assign PMC material definition to a single document object. |
![]() ![]() | AssignPMC(ListIDocObject, Document) | Assign PMC material definition to a collection of document objects. |
![]() ![]() | HasDefinition | Checks if a material definition is assigned to a IDocObject. |
![]() ![]() | RemoveBulk | Remove material definitions from a collection of document objects. |
![]() ![]() | RemoveSingle | Remove material definition from a single document object. |
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)