< All Topics

List and modify Cylinder

Lookup all Cylinders (Basic Catalog Cylinder) in model

Change cylinder Roll by 90 degrees

foreach (var cyl in Experior.Core.Assemblies.Assembly.Items.Values)
{
    if (cyl is Experior.Catalog.Logistic.Cylinder &amp;&amp; cyl.Color == Color.Yellow)
    {
        Log.Write(cyl.Name);
        cyl.Roll = (float) Math.PI / 2;
    }
}
Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Previous List and modify Assembly names
Next List and modify Motor Names