Message 1 sur 2
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Lien permanent
- Imprimer
- Signaler
Hello,
Is there a more direct way to collect the nodes of the bars without having to list them explicitly?
Here is a raw code example for illustration: extension AsArray()
public static string GetBarNodes() { var s = new RobotApplication().Project.Structure;
return string.Join(" ", s.Selections.Get(I_OT_BAR).AsArray()
.Select(n => (IRobotBar)s.Bars.Get(n)).SelectMany(b => new[] { b.StartNode, b.EndNode }));
}
Best Regards
Résolu ! Accéder à la solution.
