Nipactivity Catia New [RECOMMENDED]
CATListOfCATDocument docList; docList.Append(pMyPartDocument); pNIPAct -> SetDocuments(docList); // Runs the activity on ALL listed docs. pNIPAct -> Run(); // Non-blocking if async flag is set. while(pNIPAct -> GetStatus() != NIP_Finished) CATSleep(100); // Update progress bar (if you have a silent UI)
| Feature | Legacy Method | New NIPActivity | | :--- | :--- | :--- | | | Requires session focus | Runs completely headless | | Error Handling | Basic (fails silently) | Advanced (CAA exceptions + logs) | | Performance | Sequential, slow | Multi-core optimized | | CATIA Version | V5R20 and below | V5R28+, 3DX 2021+ | | Save Behavior | Manual SaveAs | Automatic PLM Save + Promotion | nipactivity catia new
Because this is a "New" resource, always delete the pointer to free memory. CATListOfCATDocument docList; docList
if (pNIPAct -> GetStatus() == NIP_Finished) cout << "Success. " << pNIPAct -> GetErrorCount() << " errors."; if (pNIPAct -> GetStatus() == NIP_Finished) cout <<