Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NCProgram deleteMe() method is not implemented

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
gp2JRYB
115 Views, 2 Replies

NCProgram deleteMe() method is not implemented

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

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

2 REPLIES 2
Message 2 of 3
kandennti
in reply to: gp2JRYB

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()
Message 3 of 3
gp2JRYB
in reply to: gp2JRYB

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report