- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
IF $powermill.Status.MultipleSelection.First OR $powermill.Status.MultipleSelection.Total == 0 {
reset localvars
DIALOGS MESSAGE OFF
DIALOGS ERROR OFF
GRAPHICS LOCK
if size(explorer_selected_entities()) <= 0 or explorer_selected_entities()[0].RootType != 'tool' {
return
}
REAL $feedspeed = INPUT "Enter Type & Operation"
REAL $speed = INPUT "Enter Cutting Speed"
REAL $feed = INPUT "Enter Feed/Tooth"
foreach $t in filter(explorer_selected_entities(),'this.RootType == "tool"') {
EDIT TOOL FEEDSPEED SELECT $feedspeed
EDIT TOOL $t SURFACESPEED $speed
EDIT TOOL $t FEEDPERTOOTH $feed
}
DIALOGS MESSAGE ON
DIALOGS ERROR ON
GRAPHICS UNLOCK
Good Day,
I have this macro which allows me to change the Speeds and Feeds of selected tools.
The only thing I have an issue with is the Type and Operation $feedspeed.
Currently I have to input 0 0 for Finishing General or 0 1 for Finishing Slotting and so on.
What I'd like is to have a drop down with all the Types and Operations to select from, but I'm not entirely sure how to go about doing this, any help would be much appreciated.
Regards
Solved! Go to Solution.
Link copied