IBM Support

HE09113: VBA MACRO HANGS UP CATIA

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as user error.

Error description

  • Steps to Reproduce the Scenario:
    1. Open attached CATPART & CATDrawing.
    2. Keeping CATDrawing as an active window open the VB Editor
    3. Open the attached CATVBA script file("lwtsenha" is the
    password).
    4. Select 'Tabela' module and Run (play button)
    => macro works OK, user can select the points, curve
    elements, etc.(as shown in attached video)
    5. Close without saving and reopen both Part and Drawing.
    6. Go to: Tools > Macro > Macros
    7. Select 'Tabela' and "Run" button.
    Problem: Macro seems to be working ifne but just after
    selecting the curve elements, the performance is really
    impacted
    Expected Result: The performance should not be impacted and
    CATIA should not hang for sometime. The result should be  as
    after step 4
    Additional customer notes:
    Secondary issue seen is that after Step 7) it is not possible
    to edit text fields on the tool "Coodinate Dimension Table"
    Sometimes the CATIA hangs when activating the drawing
    document.
    And, as problems are intermittent, sometimes the toolbar
    "Tools Palette" is not visible, so they cannot finalize the
    selection.
    

Local fix

  • empty
    

Problem summary

Problem conclusion

Temporary fix

Comments

  • Incident Diagnosis:
    Problem after starting a command thru a VB macro.
    Correct Application:
    The macro starts the following command:
    CATIA.StartCommand "Coordinate Dimension Table"
    This is an interactive command. In the
    CATIAApplication::StartCommand method documentation we say:
    "This method starts a command and executes it untill its
    first interaction.
    Please notice interactions such as selections you could add
    after in your macro will not work.
    StartCommand is useful to execute one-shot (not interactive)
    commands, it is not safe for interactive commands."
    The command is well started but the macro execution does not
    stop and the command could end after the macro. Such commands
    cannot be used inside macros.
    

APAR Information

  • APAR number

    HE09113

  • Reported component name

    CAA V5 NT>XP

  • Reported component ID

    569151100

  • Reported release

    520

  • Status

    CLOSED USE

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2011-08-03

  • Closed date

    2011-08-30

  • Last modified date

    2011-08-30

  • 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":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSVJ2K","label":"CATIA"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"520","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
21 August 2024