APAR status
Closed as program error.
Error description
(Windows only) I use the ExecuteProcessus method to launch an instance of CATIA in batch from within a VBScript macro and I experience CATIA hanging. There seems to be a problem with the -batch option. The "CreateBOMListing.CATScript" macro should create a BOM Listing report file "xyz.txt" in the C: directory. The problem is that the launch of CATIA in batch hangs. When I kill the CATIA session that is hung, then the "xyz.txt" file is created in C:\. . SCENARIO: 1. Launch CATIA V5R6 on a Windows platform. 2. Place all three files "test.CATScript", "CreateBOMListing.CATScript" and "xyz.CATProduct" in your C: directory. 3. Using Tools+Macro+Macros, choose "test.CATScript" from the C: directory. ==> You should experience CATIA hanging at this point. . You should also be aware that if I put some other application in the foreground so that this has the focus right after I perform step 3, then CATIA does not hang and the "xyz.txt" file is created. For example, if you were to bring up Internet Explorer to monitor the C: drive for the creation of the file "xyz.txt" then the CATIA batch execution will not hang. . Also, using ExecuteBackgroundProcessus does not cause a problem, but I must use ExecuteProcessus because I must wait for the second macro run to end before I continue with the first macro. Running the command from a command prompt also does not cause a problem. That is why I think it is a combination of using the ExecuteProcessus method with the -batch option from CNEXT that is causing the problem.
Local fix
Problem summary
ASSEMBLY - CATIA BATCH IS NOT LAUNCHING PROPERLY FROM A VBSCRIPT WITHIN TOOLS->TOOLS->MACRO.
Problem conclusion
THIS PROBLEM WILL BE FIXED ON CATIA VERSION 5 RELEASE 8 GA level. NOTE THAT THIS PROBLEM WILL ALSO BE FIXED ON V5R6SP8. AND V5R7SP6. INCIDENT DIAGNOSIS: Event loop functions where invoked in batch mode, looking for events which never occur in this mode, causing the application to hang. TECHNICAL EXPLANATION FOR THE CORRECTION: Corrected the code to remove the erroneous calls in batch mode. ANSWER AND POSSIBLE BY-PASS: none.
Temporary fix
Comments
APAR Information
APAR number
HC84012
Reported component name
CATIA V5 NT_INT
Reported component ID
569151000
Reported release
506
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2001-08-28
Closed date
2001-11-07
Last modified date
2003-06-10
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
FILE
Fix information
Fixed component name
CATIA V5 NT_INT
Fixed component ID
569151000
Applicable component levels
R006 PSY SP00608
UP01/11/30 N 1000
R106 PSY SP10608
UP01/11/30 N 1000
R206 PSY SP20608
UP01/11/30 N 1000
R306 PSY SP30608
UP01/11/30 N 1000
R506 PSY SP50608
UP01/11/30 N 1000
R706 PSY SP60608
UP01/11/30 N 1000
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSVJ2K","label":"CATIA V5"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"506","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
10 June 2003