Class CoedgeCollection
A collection of Coedge objects.
Inheritance
CoedgeCollection
Assembly: ABB.Robotics.RobotStudio.Stations.dll
Syntax
public class CoedgeCollection : ICollection, IEnumerable<Coedge>, IEnumerable
Examples
Coedge Collection.
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();
}
Properties
Count
Declaration
public virtual int Count { get; }
Property Value
IsSynchronized
Declaration
public virtual bool IsSynchronized { get; }
Property Value
Item[Int32]
Declaration
public Coedge this[int index] { get; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
Parent
Declaration
public ProjectObject Parent { get; }
Property Value
SyncRoot
Declaration
public virtual object SyncRoot { get; }
Property Value
Methods
Contains(Coedge)
Declaration
public bool Contains(Coedge obj)
Parameters
Type |
Name |
Description |
Coedge |
obj |
|
Returns
CopyTo(Coedge[], Int32)
Declaration
public void CopyTo(Coedge[] array, int index)
Parameters
CopyTo(Array, Int32)
Declaration
public virtual void CopyTo(Array array, int index)
Parameters
GetEnumerator()
Declaration
public virtual IEnumerator GetEnumerator()
Returns
ToArray()
Declaration
public Coedge[] ToArray()
Returns