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: 

One or more operations are still being generated / Initialization Fails

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
sfotis
151 Views, 2 Replies

One or more operations are still being generated / Initialization Fails

Hello,
Hope you're doing well!
I am using the api to post process couple of setups, and when I'm trying to do this for more than one setups, I am getting the following errors...
When using the postProcess method from the NcProgramm object, I'm getting:
"One or more operations are still being generated", while when using postProcess or postProcessAll attribute from CAM object, I'm getting: "Initialization Fails".

What can I do about it??
I tried adding sleep time in-between the individual operations, before the invoking the method, but the issue remains.

Thank you in advance!

2 REPLIES 2
Message 2 of 3
Jorge_Jaramillo
in reply to: sfotis

Hi,

It isn't clear in your post how the toolpaths are being generated.

If you use any of the CAM.generateToolpath 's methods, all of the return a GenerateToolpathFuture which can be used to track the toolpath's generation progress, as described in the documentation:

 

Jorge_Jaramillo_0-1733430841986.png

Can you explain better your workflow or even better can you share your code to generate toolpaths and post-process them?

I believe than using just sleep() isn't enough to wait for the toolpaths for being completed.

 

Regards,

Jorge Jaramillo

 

Message 3 of 3
sfotis
in reply to: sfotis

Hello Jorje,
Adding this apparently resolved issues.

        while not toolpath.isGenerationCompleted:
            time.sleep(.5)

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

Post to forums  

Autodesk Design & Make Report