I wrote a macro to do this but it is slow (line by line). Is there a build-in method to do this? I can’t find it in the user manual.
Thanks!
sub clear_all_lenses
num_s = nsur()
if (num_s > 2)
for i, num_s-1, 1, -1
!print "delete surface ",i
delete i
next
endif
return