- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good Day,
I'm working on this macro to change the model location of selected toolpaths, but I'm sort of stumped.
Any help would save the remaining hair on top of my head.
IF $powermill.Status.MultipleSelection.First OR $powermill.Status.MultipleSelection.Total == 0 {
STRING $Message = "Choose New Machine Tool Model Location"
STRING LIST Selected_WORKPLANES = INPUT ENTITY MULTIPLE WORKPLANE $Message
DIALOGS MESSAGE OFF
DIALOGS ERROR OFF
GRAPHICS LOCK
FOREACH $tp IN explorer_selected_entities() {
ACTIVATE TOOLPATH $tp.name
FOREACH $ref IN folder ('WORKPLANE') {
EDIT PAR 'ModelLocation' $ref
}
EDIT TOOLPATH $tp REAPPLYFROMGUI
YES
}
MESSAGE INFO "All Selected Toolpath Machine Tool Model Locations Have Been Updated "
TEXTINFO ACCEPT
DIALOGS MESSAGE ON
DIALOGS ERROR ON
GRAPHICS UNLOCK
Solved! Go to Solution.