- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to create a macro that will me copy a toolpath multiple times, and edit the radial thickness for comp options. Please dont ask we are not using comp within the cycle, its not an option.
Macro pause "Activate Toolpath for Comping"
string list $Comp_Options = {'-0.02', '-0.03', '-0.04', '-0.05', '+0.02', '+0.03', '+0.04', '+0.05'}
int List P = input choice multiple $Comp_Options "Select options"
FOREACH id IN P {
real pick = $Comp_Options[$P]
COPY TOOLPATH ;
ACTIVATE TOOLPATH #
EDIT TOOLPATH ; RECYCLE
EDIT PAR 'UseAxialThickness' '1'
EDIT PAR 'AxialThickness' "0.0"
EDIT PAR 'Thickness' $Pick
EDIT TOOLPATH ; CALCULATE
}
I am looking to pick multiple values, which works, then loop with a Foreach, which works, but i need to be able to read the values that i selected from the list to use as a REAL value parameter to edit the TP thickness with.
Any help would be appreciated.
Solved! Go to Solution.