CoedgeCollection Class |
Namespace: ABB.Robotics.RobotStudio.Stations
public class CoedgeCollection : ICollection, IEnumerable, IEnumerable<Coedge>
The CoedgeCollection type exposes the following members.
Name | Description | |
---|---|---|
Contains | ||
CopyTo(Array, Int32) | ||
CopyTo(Coedge, Int32) | ||
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetEnumerator | ||
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToArray | ||
ToString | (Inherited from Object.) |
Project.UndoContext.BeginUndoStep("CoedgeProperties"); try { Station station = Station.ActiveStation; // Create a box. Part myPart = new Part(); myPart.Name = "MyPart"; station.GraphicComponents.Add(myPart); Body box = Body.CreateSolidBox(new Matrix4(Vector3.XVector, 0.0), new Vector3(0.1, 0.1, 0.1)); box.Name = "MyBox"; myPart.Bodies.Add(box); // Get a coedge from the box. Coedge myCoedge = box.Shells[0].Faces[0].Loops[0].Coedges[0]; // Output some info of the coedge. Logger.AddMessage(new LogMessage("The body of the coedge is: " + myCoedge.Body.Name)); Logger.AddMessage(new LogMessage("The edge of the coedge is: " + myCoedge.Edge.Name)); Logger.AddMessage(new LogMessage("The coedge is reversed: " + myCoedge.Reversed.ToString())); Logger.AddMessage(new LogMessage("The start vertex of the coedge is : (" + myCoedge.StartVertex.Position.x.ToString() + ", " + myCoedge.StartVertex.Position.y.ToString() + ", " + myCoedge.StartVertex.Position.z.ToString() + ")")); Logger.AddMessage(new LogMessage("The end vertex of the coedge is : (" + myCoedge.EndVertex.Position.x.ToString() + ", " + myCoedge.EndVertex.Position.y.ToString() + ", " + myCoedge.EndVertex.Position.z.ToString() + ")")); } catch { Project.UndoContext.CancelUndoStep(CancelUndoStepType.Rollback); throw; } finally { Project.UndoContext.EndUndoStep(); }