Macro to abort computing toolpath if no feature fits to filter

Macro to abort computing toolpath if no feature fits to filter

Anonymous
Not applicable
687 Views
2 Replies
Message 1 of 3

Macro to abort computing toolpath if no feature fits to filter

Anonymous
Not applicable

i have an activated feature set and i set some filter in the drilling toolptah like, diameter, depth and depthtyp.

but sometimes after filtering there are no red marked hole features left. If i click click calculate now, the toolpath includes every hole in the feature set. Even if no feature fits to my set filter.

 

So i need a macro which does kind of a request. if there is a still a red marked feature -> calculate. if there is no feature fitting to the filter -> don't calculate.

 

I am hoping my problem is understandable.

 

 

 


EDIT SELECTION FILTER DEPTHTYPE "Through" 
EDIT SELECTION APPLY 
EDIT FEATURESET ; HOLES DESCRIPTION TYPE "Through" 

EDIT SELECTION TYPE DEPTH // Maximaltiefe festlegen
EDIT SELECTION FILTER DEPTH MAX "75" 

EDIT SELECTION TYPE DIAMETER 
EDIT SELECTION FILTER DIAMETER MIN " 9,99" 
EDIT SELECTION FILTER DIAMETER MAX "10,01" 

0 Likes
Accepted solutions (1)
688 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Accepted solution
IF number_selected(entity('featureset','')) > 0 {
// Calculate
}
 
Message 3 of 3

Anonymous
Not applicable

so easy .. thank you!

0 Likes