IBM Support

HC95404: VBSCRIPT ERROR: ERR_1002 , THE METHOD ITEM FAILED.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • ABSTRACT: the Selection.Item method fails.
    .
    Problem:
    When trying to retrieve the items contained in the Selection
    object, the "Item" method fails.
    I have based my code on the example code that is contained
    in the documentation of the Selection object :
     Dim myDocument
     Set myDocument = CATIA.ActiveDocument
     Dim mySelection As Selection
     Set mySelection = myDocument.Selection
     Dim number
     number = mySelection.Count
     msgbox "Number of Bodies in the selection = " &
    Cstr(number)
     for i=1 to number
       msgbox "Element name is : " &
    mySelection.Item(i).Value.Name
     next
    .
    SCENARIO:
    1. Open a Document with any element,
    2. Select something in the Feature Tree displayed in the
    Document
    3. Execute the Macro while there is an active selection
    ==> There is an error message displayed as soon as the
    "Item" method is called on the selection object
    

Local fix

Problem summary

  • VBSCRIPT ERROR: ERR_1002 , THE METHOD ITEM FAILED
    

Problem conclusion

  • THIS PROBLEM WILL BE FIXED ON
      CATIA VERSION 5 RELEASE 10 GA level.
    NOTE THAT THIS PROBLEM WILL ALSO BE FIXED ON V5R9 SP2.
    
     INCIDENT DIAGNOSIS:
    VBSCRIPT ERROR: ERR_1002 , THE METHOD ITEM FAILED
    
     TECHNICAL EXPLANATION FOR THE CORRECTION:
    In the case where 'item' is executed on the contents of the
    selection object outside a call to SelectElement, the IID was
    not calculated.
    
     ANSWER AND POSSIBLE BY-PASS:
    None.
    

Temporary fix

Comments

APAR Information

  • APAR number

    HC95404

  • Reported component name

    CATIA V5/NT/200

  • Reported component ID

    569151000

  • Reported release

    508

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2002-06-21

  • Closed date

    2002-07-22

  • Last modified date

    2002-07-22

  • 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/200

  • Fixed component ID

    569151000

Applicable component levels

  • R508 PSN

       UP

  • R509 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":"508","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
22 July 2002