APAR status
Closed as user error.
Error description
CATScript macro is KO when doing copy (through a CATProduct). . SCENARIO: 1. launch CATIAV5 2. open a new CATProduct 3. Insert a CATPart : Part1.CATPart 4. Edit the CATPart 5. in the geometrical set, create a point or a plane 6. Activate the CATproduct (it must be in blue) 7. Select and Execute the attached macro through TOOLS/MACRO/MACROS Define the macro library (=where is the attached CATSCript) Run the macro ==> you get an Error copying Data window: "selected elements not allowed for this operation" ==> you get an error message Scripting Error_1002 (refer to the attached jpeg file) "NO CSO element remains after the filtering throgh the UI active object..." .
Local fix
Problem summary
Problem conclusion
Temporary fix
Comments
null ==========*===========*========== This is a USER error. . Incident Diagnosis: The Selection object documentation was not precise enough. . Correction Explanation: In the documentation obtained surfing the following way: - Automation Documentation Home Page - Middleware - Infrastructure Automation API Reference - Selection - header we add: Note: The Selection object can be accessed through the Document.Selection property . However, when the active window contains the tree described above, the Selection object to use is the one associated to the Product3 Document , which can be accessed through the application of the Document.Selection to this document. You will, for example, determine the Selection object the following way: . Set ActiveProductDocument = CATIA.ActiveDocument . Set Product3 = ActiveProductDocument.Product . Set Product3Products = Product3.Products . Set Product2Dot1 = Product3Products.Item ("Product2.1") : Set Product2 = Product2Dot1.ReferenceProduct . Set ProductDocument2 = Product2.Parent . Set Product2Products = Product2.Products . Set Product1Dot1 = Product2Products.Item ("Product1.1") : Set Product1 = Product1Dot1.ReferenceProduct . Set ProductDocument1 = Product1.Parent . Set Product1Products = Product1.Products . Set Part1Dot1 = Product1Products.Item ("Part1.1") : Set Part1 = Part1Dot1.ReferenceProduct . Set PartDocument1 = Part1.Parent . Set Selection = ActiveProductDocument.Selection . . Another Selection object, such as: . Set ProductDocument2Selection = ProductDocument2.Selection Set ProductDocument1Selection = ProductDocument1.Selection Set PartDocument1Selection = PartDocument1.Selection . (lets take ProductDocument2Selection for example) can only be used if, among the different Window , there is at least one whose root Document is ProductDocument2 . Otherwise, results are unpredictable. . Answer and By-Pass: No bypass. .
APAR Information
APAR number
HD63619
Reported component name
CATIA V5 HP-UX
Reported component ID
569102000
Reported release
517
Status
CLOSED USE
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2007-04-20
Closed date
2007-06-12
Last modified date
2007-06-12
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Applicable component levels
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSVJ2K","label":"CATIA"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"517","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
12 June 2007