Community
PowerMill Forum
Welcome to Autodesk’s PowerMill Forums. Share your knowledge, ask questions, and explore popular PowerMill topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Macro to abort computing toolpath if no feature fits to filter

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
598 Views, 2 Replies

Macro to abort computing toolpath if no feature fits to filter

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" 

2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

IF number_selected(entity('featureset','')) > 0 {
// Calculate
}
 
Message 3 of 3
Anonymous
in reply to: Anonymous

so easy .. thank you!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report