Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

NCProgram deleteMe() method is not implemented

gp2JRYB
Explorer Explorer
305 Views
2 Replies
Message 1 of 3

NCProgram deleteMe() method is not implemented

gp2JRYB
Explorer
Explorer
for program in cam.ncPrograms:
   program.deleteMe()
 
returns the following exception 

AttributeError: 'NCProgram' object has no attribute 'deleteMe'

0 Likes
Accepted solutions (1)
306 Views
2 Replies
Replies (2)
Message 2 of 3

kandennti
Mentor
Mentor
Accepted solution

Hi @gp2JRYB .

 

I tried it and was able to remove it with no problem.
It may be a version problem. (Ver. 2.0.16265)

 

Also, if you want to delete all NcPrograms, you have to delete them from the back, otherwise some will remain.

        for program in reversed(cam.ncPrograms):
            program.deleteMe()
0 Likes
Message 3 of 3

gp2JRYB
Explorer
Explorer

Perfect thank you, it works like a charm after upgrading the version.

1 Like