Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Macro to abort computing toolpath if no feature fits to filter

Anonymous

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
Reply
Accepted solutions (1)
615 Views
2 Replies
Replies (2)

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

Anonymous
Not applicable

so easy .. thank you!

0 Likes