Nip-activity - Catia

| Error | Likely Cause | Solution | |-------|--------------|----------| | 0x80004005 (Unspecified error) | The macro uses a GUI method (e.g., Selection.SelectElement2 ) | Rewrite the macro to use non-interative methods or hardcoded names. | | CATIA cannot be started | License server unavailable or incorrect environment | Run CATIA -env check. Ensure a batch license (e.g., MD2, HD2) is available. | | File not found | Relative path used | Convert all paths to absolute. Use CATIA.FileSystem.GetAbsoluteName . | | Process hangs indefinitely | A modal dialog is waiting (e.g., "Do you want to save changes?") | Add CATIA.DisplayAlerts = False at the start of your macro. |

| Issue | Probable Cause | Solution | | :--- | :--- | :--- | | | Infinite loop or null reference | Add extensive logging & use CATIA.SystemService.Exit monitoring. | | Part updates but wrong geometry | Hybrid design (Open Body vs. Geometrical Set) confusion | Explicitly define the HybridBody or GeometricalSet target. | | Slow performance | Regeneration of all features every time | Set part1.MainBody.KeepModificationMode = False (Advanced). | | Fillet fails randomly | Edge topology changes (vertex numbers shift) | Use topological naming via GetEdges() with geometric criteria (length, angle). | NIP-Activity - Catia