Click or drag to resize
CoedgeCollection Class
A collection of Coedge objects.
Inheritance Hierarchy
SystemObject
  ABB.Robotics.RobotStudio.StationsCoedgeCollection

Namespace:  ABB.Robotics.RobotStudio.Stations
Assembly:  ABB.Robotics.RobotStudio.Stations (in ABB.Robotics.RobotStudio.Stations.dll) Version: 7.0.8747.636
Syntax
C#
public class CoedgeCollection : ICollection, 
	IEnumerable, IEnumerable<Coedge>

The CoedgeCollection type exposes the following members.

Properties
Methods
Remarks
The order of items in the collection is not guaranteed to match the topology of the parent.
Examples
Coedge Collection.
Coedge Properties Example
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();
}
Version Information

Supported in: 1.0.0.0
See Also