cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Narrowing selection type

ZS_10383889
10-Marble

Narrowing selection type

Hello all,

 

Is there some way to set the filter in the lower right of the status bar programmatically to narrow the selection type? 

ACCEPTED SOLUTION

Accepted Solutions

Maybe, you can run mapkey to change a value in the selection filter listbox.

View solution in original post

8 REPLIES 8
FV
17-Peridot
17-Peridot
(To:ZS_10383889)

the first argument to ProSelect() function is a 'run-time' selection filter.

FV_0-1667948374177.png

 

ZS_10383889
10-Marble
(To:FV)

Thanks.

I think I was not specific enough. I intended to say without using function ProSelection.

Now I think that the filter in the lower right of the status bar does not anything but just serves as parameter to be applied for the above function.

FV
17-Peridot
17-Peridot
(To:ZS_10383889)

are you trying to use  ProSelbufferSelectionsGet(...) function?

ZS_10383889
10-Marble
(To:FV)

Yes, that is exactly what I do. But the user on each stage should be able to choose only one specific type. So, I want to provide this without using Parametric UI but programmatically.

Maybe, you can run mapkey to change a value in the selection filter listbox.

If there is no other choice. Thanks.

FV
17-Peridot
17-Peridot
(To:ZS_10383889)

perhaps UI could be programmed similar to how hole-feature definition's 'Placement' dialog box is working - the dialog starts with pre-selection enabled 'Placement' input panel, but for 'Offset References' panel - an end user must left-click on the panel area and that starts ProSelect() (in no-dialog-mode) which specifies available selection filters. 

ZS_10383889
10-Marble
(To:FV)

Thanks FV,

 

But for now, I prefer to avoid ProSelect() complexities all together and filtering from selections. This greatly simplifies the program flow.

Announcements


Top Tags