APAR status
Closed as program error.
Error description
Macro including Selection does not run correctly. . < Scenario > 1.Open the "Top_Product.CATProduct" file. Any Workbench is OK for this problem. 2.Select "Tools/Macro/Macros" from menu bar. => "Macros" window is displayed. 3.Click Select button. => "Select a macro file" window is displayed. 4.Select "Selection.catvbs". And then click Open button. 5.Click Run button. => "CATScriptErrorMessages" panel is displayed. This is a problem. . < Contents of "CATScriptErrorMessages" > CNEXT - CATScriptErrorMessages - ScriptingERR_1002 . Execute the script "Selection.catvbs". The scripting engine for MS VBScript has reported the following error: . Source: CATIAPartDocument Description: The method Selection failed Line: 5 Column: 3 . See the language reference guide or the V5 Automation APIs documentation. . Would you like to edit the macro source code now ? . < Expected Result > Execution of Macro should be completed without displaying an error message. .
Local fix
Problem summary
Macro including Selection does not run correctly Macro including Selection does not run correctly. . < Scenario > 1.Open the "Top_Product.CATProduct" file. Any Workbench is OK for this problem. 2.Select "Tools/Macro/Macros" from menu bar. => "Macros" window is displayed. 3.Click Select button. => "Select a macro file" window is displayed. 4.Select "Selection.catvbs". And then click Open button. 5.Click Run button. => "CATScriptErrorMessages" panel is displayed. This is a problem. . < Contents of "CATScriptErrorMessages" > CNEXT - CATScriptErrorMessages - ScriptingERR_1002 . Execute the script "Selection.catvbs". The scripting engine for MS VBScript has reported the following error: . Source: CATIAPartDocument Description: The method Selection failed Line: 5 Column: 3 . See the language reference guide or the V5 Automation APIs documentation. . Would you like to edit the macro source code now ? . < Expected Result > Execution of Macro should be completed without displaying an error message. .
Problem conclusion
THIS PROBLEM WILL BE FIXED ON CATIA VERSION 5 RELEASE 17 GA level. NOTE THAT THIS PROBLEM WILL ALSO BE FIXED ON V5R16SP02. . .Incident Diagnosis Macro including Selection does not run correctly on a document without an editor. . .Correction Explanation CATIADocument::get_Selection was badly implemented. A first correction was made some weeks ago to prevent this method from creating any document editor. This correction was too wide, it did not support documents belonging to an assembly which has an editor. This case is now managed : the editor of the assembly is taken into account. . .Answer and By-Pass no .
Temporary fix
Comments
APAR Information
APAR number
HD47139
Reported component name
CATIA V5 NT>XP
Reported component ID
569151000
Reported release
516
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2005-11-29
Closed date
2005-12-08
Last modified date
2006-01-05
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 NT>XP
Fixed component ID
569151000
Applicable component levels
R516 PSN SP51602
UP06/01/04 I 1000
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSVJ2K","label":"CATIA"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"516","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
05 January 2006