Nip-activity - Catia Verified -
' --- Export as STEP --- Dim oStepSetting As SettingController Set oStepSetting = CATIA.GetSetting("STEPSettingController") ' (Configure STEP settings as needed)
| 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. | With the shift to Dassault’s 3DEXPERIENCE platform, NIP-Activity has evolved. The concept now includes Batch Dashboards and MQL (Matrix Query Language) scripts on the server side. Instead of CATIA_NIR.exe , you use 3DEXPERIENCE Batch Services . NIP-Activity - Catia
' --- Initialize Logging --- Set oFileSystem = CreateObject("Scripting.FileSystemObject") Set oLogFile = oFileSystem.OpenTextFile("C:\NIP_Logs\process.log", 8, True) ' 8 = append ' --- Export as STEP --- Dim oStepSetting
Language="VBSCRIPT" Sub CATMain() Dim oDoc As Document Dim oPart As Part Dim strInputFile As String Dim strOutputFile As String Dim oFileSystem Dim oLogFile | | File not found | Relative path
CATIA_NIR.exe -batch -macro "C:\MyMacros\ExportToSTEP.CATScript" -log "C:\Logs\output.log" On some configurations, you can also use the standard CNEXT.exe with specific flags: