Modify op path: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
New page: 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_...
 
ConnerO (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
local a$, iop, inum, dist, i
local a$, iop, inum, dist, i<br>
 
<br>
degrees
degrees<br>
 
<br>
 
<br>
check part_open, "You must have a part open to run this macro"
check part_open, "You must have a part open to run this macro"<br>
 
<br>
 
<br>
!  make sure at least 1 op is selected
!  make sure at least 1 op is selected<br>
!  -----------------------------------
!  -----------------------------------<br>
 
<br>
get_op_list 1
get_op_list 1<br>
inum = number_of_ops
inum = number_of_ops<br>
 
<br>
if inum<1 then stop "Please select an operation to update"
if inum<1 then stop "Please select an operation to update"<br>
 
<br>
 
<br>
!  save the list of selected ops
!  save the list of selected ops<br>
!  -----------------------------
!  -----------------------------<br>
 
<br>
global iop_list(inum)
global iop_list(inum)<br>
 
<br>
for i=1 to inum
for i=1 to inum<br>
  iop_list(i) = next_op_number
:iop_list(i) = next_op_number<br>
next i
next i<br>
 
<br>
dist = 3
dist = 3<br>
 
<br>
for i=1 to inum
for i=1 to inum<br>
  iop = iop_list(i)
:iop = iop_list(i)<br>
 
<br>
  a$ = "Modify Op Path " + format$(iop, "###0")
:a$ = "Modify Op Path " + format$(iop, "###0")<br>
  progress_start a$
:progress_start a$<br>
 
<br>
  call "ModifyOpPath1.mac", iop, dist
:call "[[modify op path2|ModifyOpPath1.mac]]", iop, dist<br>
 
<br>
  progress_stop
:progress_stop<br>
next i
next i<br>
 
<br>
if inum=1 then message "Finished, updated 1 Operation"
if inum=1 then message "Finished, updated 1 Operation"<br>
if inum>1 then message "Finished, updated %inum Operations"
if inum>1 then message "Finished, updated %inum Operations"<br>

Latest revision as of 17:43, 27 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"