APAR status
Closed as Permanent restriction.
Error description
PROBLEM: Generated element is not able to select individually by "SelectElement2" method. SCENARIO: Pre confirmation. 1. Open 13492.CATDrawing. 2. Select menu "Edit -> Search" ,Search dialog box is displayed. 3. Click Advance tab. 4. Define following fields and click "Search" icon. - Workbench : as Drafting. - Type : as Generated Item. 5. 4 object found as "GeneratedItem". Problem Scenario: 1. Open 13492.CATDrawing. 2. Select menu "Tools -> Macro -> Macros". 3. Open "Selection.catvba" and Edit. 4. In this macro, SelectElement2 method of Selection Object is used. Element filter is set to "Line2D". The following code is used in Macro: ( Line34) . Dim InputObjType(0) InputObjType(0) = "Line2D" strStatus = Selection1.SelectElement2 (InputObjType,strStbMsg,False) . RESULT 1: ===> Selection can not be performed as cursor icon is changed to "Non-Selection". 5. Edit "Selection.catvba" again. 6. Element filter is change from ""Line2D" to"AnyObject". The following code is used in Macro: ( Line34) . Dim InputObjType(0) InputObjType(0) = "AnyObject" strStatus = Selection1.SelectElement2 (InputObjType,strStbMsg,False) . RESULT 2: ===>If 2DLine is selected then View is getting selected instead of line. 7. Edit "Selection.catvba" again. 8. Element filter is change from "AnyObject" to "GeneratedItem". The following code is used in Macro: ( Line34) . Dim InputObjType(0) InputObjType(0) = "GeneratedItem" strStatus = Selection1.SelectElement2 (InputObjType,strStbMsg,False). RESULT 3: Program Code Error. " The GeneratedItem automation object name is not supported". EXPECTED RESULT: Generated element is able to select individually by "SelectElement2" method. .
Local fix
Problem summary
Generated element is not able to select individually by "SelectElement2" method PROBLEM: Generated element is not able to select individually by "SelectElement2" method. SCENARIO: Pre confirmation. 1. Open 13492.CATDrawing. 2. Select menu "Edit -> Search" ,Search dialog box is displayed. 3. Click Advance tab. 4. Define following fields and click "Search" icon. - Workbench : as Drafting. - Type : as Generated Item. 5. 4 object found as "GeneratedItem". Problem Scenario: 1. Open 13492.CATDrawing. 2. Select menu "Tools -> Macro -> Macros". 3. Open "Selection.catvba" and Edit. 4. In this macro, SelectElement2 method of Selection Object is used. Element filter is set to "Line2D". The following code is used in Macro: ( Line34) . Dim InputObjType(0) InputObjType(0) = "Line2D" strStatus = Selection1.SelectElement2 (InputObjType,strStbMsg,False) . RESULT 1: ===> Selection can not be performed as cursor icon is changed to "Non-Selection". 5. Edit "Selection.catvba" again. 6. Element filter is change from ""Line2D" to"AnyObject". The following code is used in Macro: ( Line34) . Dim InputObjType(0) InputObjType(0) = "AnyObject" strStatus = Selection1.SelectElement2 (InputObjType,strStbMsg,False) . RESULT 2: ===>If 2DLine is selected then View is getting selected instead of line. 7. Edit "Selection.catvba" again. 8. Element filter is change from "AnyObject" to "GeneratedItem". The following code is used in Macro: ( Line34) . Dim InputObjType(0) InputObjType(0) = "GeneratedItem" strStatus = Selection1.SelectElement2 (InputObjType,strStbMsg,False). RESULT 3: Program Code Error. " The GeneratedItem automation object name is not supported". EXPECTED RESULT: Generated element is able to select individually by "SelectElement2" method. .
Problem conclusion
THIS PROBLEM IS PERMANENT RESTRICTION IN CATIA. . .Incident Diagnosis Generative Geometry is not selected by VB macro . .Restriction Explanation Generative geometry object (genItem) is not exposed by automation API, that's why it is not possible to select it. . .By-Pass Generative Geometry is only accessible by CAA C++ interface .
Temporary fix
Comments
APAR Information
APAR number
HD55068
Reported component name
CAA V5 NT>XP
Reported component ID
569151100
Reported release
515
Status
CLOSED PRS
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2006-07-17
Closed date
2006-09-28
Last modified date
2006-09-28
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 \u0026 Data Platform"},"Product":{"code":"SSVJ2K","label":"CATIA"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"515","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
22 August 2024