IBM Support

HD20655: VB : TRYING TO ACCESS THE API: GETNUMBEROFSHAPES() UNDER OBJECT "PRODUCT" IN VB EDITOR.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • VB : Trying to access the API: GetNumberOfShapes
    () under Object "Product" in VB Editor.
    - Create a Product document
    - Run the provided CATScript macro
    - Result error
    .
    Dim MyProd As ProductDocument
    Set MyProd = CATIA.ActiveDocument
    .
    Dim product1 As Product
    Set product1 = MyProd.Product
    .
    Dim NumOfShapes As Long
    NumOfShapes = product1.GetNumberOfShapes()
    .
    Error "Run time error ᄄ-2147467259ᄄ (80004005)"
    when using GetNumberOfShapes method.
    .
    

Local fix

Problem summary

  • VB : Trying to access the API: GetNumberOfShapes() under Object
    "Product" in VB Editor.
    VB : Trying to access the API: GetNumberOfShapes
    () under Object "Product" in VB Editor.
    - Create a Product document
    - Run the provided CATScript macro
    - Result error
    .
    Dim MyProd As ProductDocument
    Set MyProd = CATIA.ActiveDocument
    .
    Dim product1 As Product
    Set product1 = MyProd.Product
    .
    Dim NumOfShapes As Long
    NumOfShapes = product1.GetNumberOfShapes()
    .
    Error "Run time error  -2147467259  (80004005)"
    when using GetNumberOfShapes method.
    .
    

Problem conclusion

  • THIS PROBLEM WILL BE FIXED ON CATIA VERSION
    5 RELEASE 14 GA level.
    NOTE THAT THIS PROBLEM WILL ALSO BE FIXED
    ON V5R13SP04.
    .
    Incident Diagnosis
    If the Product had not shape, the VB method failed.
    .
    Correction Explanation
    In case of fail, the VB method succeeds and
    indicates that the product has no shape (0 shape).
    .
    Answer and By-Pass
    none
    .
    

Temporary fix

Comments

APAR Information

  • APAR number

    HD20655

  • Reported component name

    CATIA V5/NT/200

  • Reported component ID

    569151000

  • Reported release

    513

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2004-04-08

  • Closed date

    2004-05-04

  • Last modified date

    2004-06-04

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

  • Fixed component ID

    569151000

Applicable component levels

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

Document Information

Modified date:
04 June 2004