Message 1 of 4
iLogic: Allow multiple filters for the Pick function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I know I can use the Pick function to select objects using iLogic. I know the filter for Planes is "SelectionFilterEnum.kWorkPlaneFilter", and for Sketches it's "SelectionFilterEnum.kSketchObjectFilter".
But what if I want to have a pick function that will allow me to select a plane OR a sketch? Is there any way to specify multiple filters for a Pick function? Something like:
ThisApplication.CommandManager.Pick(SelectionFilterEnum.kWorkPlaneFilter & SelectionFilterEnum.kSketchObjectFilter,"Select a Plane or Sketch:")
Is this possible? If not, can I specify a "filter" that will allow me to select anything, so I can select either a plane or a sketch and then just give an error if something else is selected?