View Single Post
  #3  
Old 09-25-2018, 01:52 PM
phi phi is offline
Registered User
 
Join Date: May 2018
Posts: 5
Re: Sheet Metal Tool Replacement macro?

Thanks Tom. I was able to create the replacement macro using good ol' trial and error using TRACE. Do you have any advice on my code?

DEFINE Sha_replace_my_stamp

LET circle_center (INQ 101)
LET tol 0.1
LET del_size (INQ 3)

INQ_SELECTED_ELEM SELECT CIRCLES ALL CONFIRM

LOOP
EXIT_IF (INQ 14=0)

LET Up_limit ((INQ 3) + tol)
LET Lw_limit ((INQ 3) - tol)

IF ((del_size<=Up_limit) AND (del_size>=Lw_limit))
DELETE POINTER (INQ 2)
END
END_IF
INQ_NEXT_ELEM
END_LOOP

LET del_size 0

CIRCLE (circle_center)

END_DEFINE
Reply With Quote