IBM Support

HD53872: WHEN ACCESSING ANALYSIS LOCAL SENSOR FROM VBA, IT'S VALUE IS UNSET

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When accessing analysis local sensor from VBA, it's
    value is unset.
    .
    Preparation:
    Since this problem relies heavily on macros, you
    must first set your Excel security level to medium
    using Tools > Macro > Security
    .
    Scenario(R14 No problem):
    1.Start CATIA V5 R14
    2.Open "ANALYSIS1.CATAnalysis" Fully expand
    the sensor section of the model tree.
    3. Open "MacroFile.xls", press ALT + F11 for the
    VBA window, go to Module1, Select View>Locals
    Window.
    4.Split the windows so that you can see both at the
    same time.
    5. Put the Cursor at the last line of the macro ("End
    Sub") then run macro using Debug > Run To
    Cursor, after inspect that nothing has changed in
    the sensors. Do not stop the macro yet.
    6.Browse to the sensor values using the Local
    Window. Under "analysisEntities1" open item 2 to 9
    You can find the sensor values by opening this
    path:
    analysisEntities > Item(2 to 9) >
    OutPutParameters > Item 1 > Value
    Scenario(R16:Defect problem):
    7. Close R14, start CATIA V5 R16SP4
    8. Open "ANALYSIS1.CATAnalysis" Fully expand
    the sensor section of the model tree.
    9. Open "MacroFile.xls", press ALT + F11 for the
    VBA window, go to Module1, Select View>Locals
    Window.
    10. as step 5 (Run the "Main" macro).
    Notice that sensor 1 and 2 are !
    Do not stop the macro yet.
    Problem: When accessing analysis local sensor
    from VBA, it's value is unset.
    .
    Expected Result:
    When accessing analysis local sensor from VBA,
    sensor value should be acquired correctly
    .
    MATERIAL:
    V502950.ppt
    MacroFile.xls
    CUBE.CATPart
    ANALYSIS16.CATAnalysisResults
    ANALYSIS16.CATAnalysis
    ANALYSIS1.CATAnalysisResults
    ANALYSIS1.CATAnalysis
    .
    .
    

Local fix

Problem summary

  • When accessing analysis local sensor from VBA, it's value is
    unset
    When accessing analysis local sensor from VBA, it's
    value is unset.
    .
    Preparation:
    Since this problem relies heavily on macros, you
    must first set your Excel security level to medium
    using Tools > Macro > Security
    .
    Scenario(R14 No problem):
    1.Start CATIA V5 R14
    2.Open "ANALYSIS1.CATAnalysis" Fully expand
    the sensor section of the model tree.
    3. Open "MacroFile.xls", press ALT + F11 for the
    VBA window, go to Module1, Select View>Locals
    Window.
    4.Split the windows so that you can see both at the
    same time.
    5. Put the Cursor at the last line of the macro ("End
    Sub") then run macro using Debug > Run To
    Cursor, after inspect that nothing has changed in
    the sensors. Do not stop the macro yet.
    6.Browse to the sensor values using the Local
    Window. Under "analysisEntities1" open item 2 to 9
    You can find the sensor values by opening this
    path:
    analysisEntities > Item(2 to 9) >
    OutPutParameters > Item 1 > Value
    Scenario(R16:Defect problem):
    7. Close R14, start CATIA V5 R16SP4
    8. Open "ANALYSIS1.CATAnalysis" Fully expand
    the sensor section of the model tree.
    9. Open "MacroFile.xls", press ALT + F11 for the
    VBA window, go to Module1, Select View>Locals
    Window.
    10. as step 5 (Run the "Main" macro).
    Notice that sensor 1 and 2 are !
    Do not stop the macro yet.
    Problem: When accessing analysis local sensor
    from VBA, it's value is unset.
    .
    Expected Result:
    When accessing analysis local sensor from VBA,
    sensor value should be acquired correctly
    .
    MATERIAL:
    V502950.ppt
    MacroFile.xls
    CUBE.CATPart
    ANALYSIS16.CATAnalysisResults
    ANALYSIS16.CATAnalysis
    ANALYSIS1.CATAnalysisResults
    ANALYSIS1.CATAnalysis
    .
    .
    

Problem conclusion

  • THIS PROBLEM WILL BE FIXED ON CATIA VERSION
    5 RELEASE 18 GA level.
    NOTE THAT THIS PROBLEM WILL ALSO BE FIXED
    ON V5R17SP01 and ON V5R16SP06.
    .
    .Incident Diagnosis
    When accessing analysis local sensor from VBA, it's
    value is unset
    .
    .Correction Explanation
    The output parameters were not handled correctly
    for an updated sensor
    .
    .Answer and By-Pass
    None.
    .
    

Temporary fix

Comments

APAR Information

  • APAR number

    HD53872

  • Reported component name

    CATIA V5 NT>XP

  • Reported component ID

    569151000

  • Reported release

    516

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2006-06-14

  • Closed date

    2006-07-05

  • Last modified date

    2006-08-02

  • 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>XP

  • Fixed component ID

    569151000

Applicable component levels

  • R516 PSN SP51606

       U506/08/01 I 1000

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSVJ2K","label":"CATIA V5"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"516","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
02 August 2006