IBM Support

HD06420: CATDYNMASSPROPERTIES1D::GETPARAMFROMLENGTH() DOES NOT WORK CORR ECT (SINCE R10 SP2 OR SP3)

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Description:
    In the Following code sequence, Length1 and
    Length2 should be the same but it isn't. This bug is
    new from R10SP2 or SP3, because our tests on
    SP1 brought the correct result.
    
    // ----------- Begin of code -----------------
    CATEdgeCurve *pEdgeCrv = hEdge->GetCurve( );
    CATCurve *pCrv = pEdgeCrv->GetRefCurve();
    
    CATCrvParam ioStartParam;
    CATCrvParam ioEndParam;
    hEdge->GetVerticesParamsOnEdgeCurve (
    &ioStartParam, &ioEndParam );
    
    CATDynMassProperties1D *pDynMassOpe1D =
    CATDynCreateMassProperties1D ( pCrv );
    double Length1 = pDynMassOpe1D-
    >GetLengthFromParams ( ioStartParam,
    ioEndParam );
    .
    CATCrvParam Parameter = pDynMassOpe1D-
    >GetParamFromLength ( ioStartParam, Length1 );
    double Length2 = pDynMassOpe1D-
    >GetLengthFromParams ( ioStartParam,
    Parameter );
    cout << "L1:" << Length1 << endl;
    cout << "L2:" << Length2 << endl;
    
    cout << "P3:" << Parameter << endl;
    // ----------- End of code -----------------
    
    SCENARIO:
    - Build the command using the provided Workspace,
    - Launch CATIA,
    - Open the provided CATPart,
    - Go to Part Design Workbench,
    - Select 'Bug' command,
    - Select the line (see .jpg file),
    ==> observe console: L1 and L2 are not identical
    although they were on V5R10 SP01.
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    .
    

Local fix

Problem summary

  • CATDynMassProperties1D::GetParamFromLength() does not work corr
    ect (since R10 SP2 or SP3)
    Description:
    In the Following code sequence, Length1 and
    Length2 should be the same but it isn't. This bug is
    new from R10SP2 or SP3, because our tests on
    SP1 brought the correct result.
    
    // ----------- Begin of code -----------------
    CATEdgeCurve *pEdgeCrv = hEdge->GetCurve( );
    CATCurve *pCrv = pEdgeCrv->GetRefCurve();
    
    CATCrvParam ioStartParam;
    CATCrvParam ioEndParam;
    hEdge->GetVerticesParamsOnEdgeCurve (
    &ioStartParam, &ioEndParam );
    
    CATDynMassProperties1D *pDynMassOpe1D =
    CATDynCreateMassProperties1D ( pCrv );
    double Length1 = pDynMassOpe1D-
    >GetLengthFromParams ( ioStartParam,
    ioEndParam );
    .
    CATCrvParam Parameter = pDynMassOpe1D-
    >GetParamFromLength ( ioStartParam, Length1 );
    double Length2 = pDynMassOpe1D-
    >GetLengthFromParams ( ioStartParam,
    Parameter );
    cout << "L1:" << Length1 << endl;
    cout << "L2:" << Length2 << endl;
    
    cout << "P1:" << ioStartParam << endl;
    cout << "P2:" << ioEndParam << endl;
    cout << "P3:" << Parameter << endl;
    // ----------- End of code -----------------
    
    SCENARIO:
    - Build the command using the provided Workspace,
    - Launch CATIA,
    - Open the provided CATPart,
    - Go to Part Design Workbench,
    - Select 'Bug' command,
    - Select the line (see .jpg file),
    ==> observe console: L1 and L2 are not identical
    although they were on V5R10 SP01.
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    .
    

Problem conclusion

  • THIS PROBLEM WILL BE FIXED ON CATIA VERSION 5 RELEASE 12 GA lev
    el.
    NOTE THAT THIS PROBLEM WILL ALSO BE FIXED ON V5R11SP04.
    
    .                                         511
    

Temporary fix

Comments

APAR Information

  • APAR number

    HD06420

  • Reported component name

    CATIA V5/NT/200

  • Reported component ID

    569151000

  • Reported release

    510

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2003-05-07

  • Closed date

    2003-07-09

  • Last modified date

    2009-06-24

  • 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

  • R510 PSN

       UP

  • R511 PSN SP51104

       UP03/08/04 N 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":"510","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
24 June 2009