Modify Op Path: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
New page: local a$, iop, inum, dist, i<br> <br> degrees<br> <br> <br> check part_open, "You must have a part open to run this macro"<br> <br> <br> ! make sure at least 1 op is selected<br> ! -----... |
No edit summary |
||
| Line 7: | Line 7: | ||
<br> | <br> | ||
<br> | <br> | ||
! make sure at least 1 op is selected<br> | ! make sure at least 1 op is selected<br> | ||
! -----------------------------------<br> | ! -----------------------------------<br> | ||
<br> | <br> | ||
get_op_list 1<br> | get_op_list 1<br> | ||
| Line 16: | Line 16: | ||
<br> | <br> | ||
<br> | <br> | ||
! save the list of selected ops<br> | ! save the list of selected ops<br> | ||
! -----------------------------<br> | ! -----------------------------<br> | ||
<br> | <br> | ||
global iop_list(inum)<br> | global iop_list(inum)<br> | ||
Latest revision as of 14:28, 29 July 2010
local a$, iop, inum, dist, i
degrees
check part_open, "You must have a part open to run this macro"
! make sure at least 1 op is selected
! -----------------------------------
get_op_list 1
inum = number_of_ops
if inum<1 then stop "Please select an operation to update"
! save the list of selected ops
! -----------------------------
global iop_list(inum)
for i=1 to inum
- iop_list(i) = next_op_number
next i
dist = 3
for i=1 to inum
- iop = iop_list(i)
- a$ = "Modify Op Path " + format$(iop, "###0")
- progress_start a$
- call "ModifyOpPath1.mac", iop, dist
- progress_stop
next i
if inum=1 then message "Finished, updated 1 Operation"
if inum>1 then message "Finished, updated %inum Operations"