Guest User

Untitled

a guest
Oct 18th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. ``` c#
  2. TSM.UI.Picker picker = new TSM.UI.Picker();
  3.  
  4. try
  5. {
  6. ModelObjectEnumerator boltGroupEnumerator = picker.PickObjects(TSM.UI.Picker.PickObjectsEnum.PICK_N_BOLTGROUPS, "Please pick the bolt groups to investigate their tolerances."); // unfortunately you have to select all the groups of bolts individually
  7. }
  8. catch (Exception ex)
  9. {
  10. MessageBox.Show(ex.Message);
  11. }
  12.  
  13. //// **Gripe Alert – please skip if you don’t like hearing folks gripe:**
  14. //// But quelle surprise, yet again the Tekla Open API designers have outdone themselves. If you want to select groups of bolts (plural),
  15. //// you can’t use a window or crossing selection – you have to individually and painstakingly manually select every single bolt
  16. //// that you see *individually*. Brilliant, that’s why we have a picker that can select multiple objects – only for it to work
  17. //// on an individual basis. Perhaps in Tekla Version 23 the Tekla Open API team can force developers to resort to using punch cards?
  18. ```
Add Comment
Please, Sign In to add comment