APAR status
Closed as program error.
Error description
Summary: When a macro is ran for the second time, we get an automation er ror ??? The server threw an exception User problem: The user cannot use the drawing border script to generate/modify drawing border, notes, processes etc.. Problem description Copy the template drawing (EXAMPLE.CATDrawing) to the directory C:\Temp The template drawing is used by the macro Start CATIA R19 SP7 1- Run Macro (Repeat-VBA-Issue.catvba > Issue) Creates a new drawing Opens a template drawing Selects the objects on that sheet Copies them Activate original drawing Paste the objects Select all objects on that sheet Filter the selection (selects the blue line) 2- Run Macro again We get an exception CATIA becomes unstable I found no existing defects. Although not described as a perform ance issue, I wondered if the crash described in this SR could b e a consequence of the PRS performance issue for VBA in a 64bit enviornment - APARs HD76099 HD92444 HD83567. Not recreated at V5R19 SP6 on 32bit. I don't have a 64bit or 32/ 64 R19 SP7 environment to test at the moment. SCENARIO: From the supplied Power Point: VBA Macro throws an exception when ran a second time Client: Windows XP, ENOVIA and CATIA R19 SP07 The customer is using the CACHE system Summary: When a macro is ran for the second time, we get an automation er ror ??? The server threw an exception User problem: The user cannot use the drawing border script to generate/modify drawing border, notes, processes etc.. Regression: V5 R17 ??? Didn???t see the issue V5 R18 SP4 ??? Started seeing problems as soon as we had to chan ge selection method (see HD76099) V5 R19 SP7 ??? Have managed to reproduce the issue ??? slightly different behaviour to R18, but the same area of code Insert-SR-description Copy the template drawing (EXAMPLE.CATDrawing) to the directory C:\Temp The template drawing is used by the macro Start CATIA R19 SP7 Run Macro (Repeat-VBA-Issue.catvba > Issue) Creates a new drawing Opens a template drawing Selects the objects on that sheet Copies them Activate original drawing Paste the objects Select all objects on that sheet Filter the selection (selects the blue line) Run Macro again We get an exception CATIA becomes unstable Additional Info The issue causes us problems for running our drawing Border/Proc ess Box and Notes tool The script we have provided is a small extract of the actual cod e used ??? It is hoped that this will help Dassault identify wha t the issue is. The tool is used extremely regularly by the designers Additional Info The drawing border script never used to have any issues It was only since R18SP4 when there was an issues with selecting large amounts of data using selection in a VBA script. A workar ound was provided by Dassault (HD76099), but we found issues wit h the workaround, but had not been able to reproduce the issue r eliably. In R19 the workaround was replaced with a new command to allow t he user to select large amounts of objects using VBA script. Thi s new command has caused more issues and now is unworkable. We have managed to put together a relatively simple script that demonstrates what we are seeing. ================================================================ ====================================================== Please also refer to the attached Power Point. Thank you.
Local fix
empty
Problem summary
Summary: When a macro is ran for the second time, we get an automation error ??? The server threw an exception User problem: The user cannot use the drawing border script to generate/modify drawing border, notes, processes etc.. Problem description Copy the template drawing (EXAMPLE.CATDrawing) to the directory C:\Temp The template drawing is used by the macro Start CATIA R19 SP7 1- Run Macro (Repeat-VBA-Issue.catvba > Issue) Creates a new drawing Opens a template drawing Selects the objects on that sheet Copies them Activate original drawing Paste the objects Select all objects on that sheet Filter the selection (selects the blue line) 2- Run Macro again We get an exception CATIA becomes unstable I found no existing defects. Although not described as a performance issue, I wondered if the crash described in this SR could be a consequence of the PRS performance issue for VBA in a 64bit enviornment - APARs HD76099 HD92444 HD83567. Not recreated at V5R19 SP6 on 32bit. I don't have a 64bit or 32/64 R19 SP7 environment to test at the moment. SCENARIO: From the supplied Power Point: VBA Macro throws an exception when ran a second time Client: Windows XP, ENOVIA and CATIA R19 SP07 The customer is using the CACHE system Summary: When a macro is ran for the second time, we get an automation error ??? The server threw an exception User problem: The user cannot use the drawing border script to generate/modify drawing border, notes, processes etc.. Regression: V5 R17 ??? Didn???t see the issue V5 R18 SP4 ??? Started seeing problems as soon as we had to change selection method (see HD76099) V5 R19 SP7 ??? Have managed to reproduce the issue ??? slightly different behaviour to R18, but the same area of code Insert-SR-description Copy the template drawing (EXAMPLE.CATDrawing) to the directory C:\Temp The template drawing is used by the macro Start CATIA R19 SP7 Run Macro (Repeat-VBA-Issue.catvba > Issue) Creates a new drawing Opens a template drawing Selects the objects on that sheet Copies them Activate original drawing Paste the objects Select all objects on that sheet Filter the selection (selects the blue line) Run Macro again We get an exception CATIA becomes unstable Additional Info The issue causes us problems for running our drawing Border/Process Box and Notes tool The script we have provided is a small extract of the actual code used ??? It is hoped that this will help Dassault identify what the issue is. The tool is used extremely regularly by the designers Additional Info The drawing border script never used to have any issues It was only since R18SP4 when there was an issues with selecting large amounts of data using selection in a VBA script. A workaround was provided by Dassault (HD76099), but we found issues with the workaround, but had not been able to reproduce the issue reliably. In R19 the workaround was replaced with a new command to allow the user to select large amounts of objects using VBA script. This new command has caused more issues and now is unworkable. We have managed to put together a relatively simple script that demonstrates what we are seeing. ============================================================== ======================================================== Please also refer to the attached Power Point. Thank you.
Problem conclusion
THIS PROBLEM WILL BE FIXED ON I-PLM Collaborative Innovation VERSION V6R2011x GA level. THIS PROBLEM WILL BE FIXED ON I-PLM Collaborative Innovation VERSION V5R21 GA level. NOTE THAT THIS PROBLEM WILL ALSO BE FIXED ON V5R19 SP9. Additional Closure Information: .
Temporary fix
Comments
APAR Information
APAR number
HD97873
Reported component name
CATIA V5 WIN 64
Reported component ID
569165000
Reported release
519
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2010-06-29
Closed date
2012-02-21
Last modified date
2012-02-21
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
CATIA V5 WIN 64
Fixed component ID
569165000
Applicable component levels
R521 PSN
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSVJ2K","label":"CATIA V5"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"519","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
21 February 2012