IBM Support

HD64887: KWA: STRINGS - ONLY 1ST STRING CAN BE CHANGED BY REPLACE SUB-TE XT.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as suggestion for future release.

Error description

  • KWA: STRINGS - ONLY 1ST STRING CAN BE
    CHANGED BY REPLACE SUB-TEXT.
    .
    SETTINGS:
    1. Start CATIA.
    2. Set option
    Tools -> option -> Parameters and Measure ->
    Knowledge -> Parameter Tree View
    With value: Active. With formula: Active.
    3. Set option
    Tools -> option -> Part Infrastructure -> Display -
    > Display In Specification Tree
    Constraints: Active
    Parameters: Active
    4.Close CATIA.
    .
    SCENARIO:
    1. Start CATIA.
    2. Open the file: File -> New. Workbench: Part
    3. Click to 'Formulas'. 'Formulas' window is opened.
    4. Click to 'New Parameter of type'. Type: 'String'
    With 'Single Value'. 'String1' is made.
    5. Input '1@2@3@4@5' into the value of 'String1'
    and Click to 'Enter key'. '1@2@3@4@5' is set into
    the value of 'String1'
    6. 'Part1\Definition' add to a formula. Click to 'Part1
    \Definition' of parameter box. Click to 'Add
    Formula' button. 'Formula Editor' is opened.
    7. The formula which used the 'ReplaceSubText'
    function input. Click to String into the 'Dictionary'
    box. Double Click to ReplaceSubText(...) into
    the 'Members of String' box.  'ReplaceSubText'
    function is inputted.
    8. Input value. Change 'String' of 'Dictionary'
    into 'Parameters'. Double click
    to 'String.1'. 'String.1' is inputted. Input this: "@"(at
    mark),"-"(hyphen). Text is inputted this:
    ReplaceSubText(String.1 ,"@","-")
    9.Click to 'OK'. 'Formula Editor' is closed. 'Formula'
    window is opened
    10. Click to 'OK'. 'Formulas' window is closed.
    11. Click to 'Part1' by 'right click'. 'Context menu' is
    opened.
    12. Click to 'Properties'. 'Properties' window is
    opened.
    13. Click to 'Product'. Check
    to 'Definition'. 'Definition' is "1-2@3@4@5". This is
    problem.
    .
    .
    

Local fix

Problem summary

Problem conclusion

Temporary fix

Comments

  • null
    ==========*===========*==========
    THIS APAR IS CONSIDERED AS A SUGGESTION
    FOR IMPROVEMENT WHICH CANNOT BE
    INCORPORATED IN VERSION V5R18
    PLEASE CONTACT YOUR SUPPORT DEPARTMENT IN
    ORDER TO OPEN A REQUIREMENT FORM.
    .
    Incident Diagnosis:
    ReplaceSubString only replaces one occurence and
    not all occurences.
    .
    Development Request Justification:
    This specific behavior of ReplaceSubstring is used
    by other users. Changing the behavior would break
    their rules. We need to introduce a new function or
    a specific argument for replace substring. This
    cannot be done in actual releases as it requires a
    full new functionnal development. We invite you to
    follow Enhancement Request process to participate
    to this development definition.
    .
    Answer and By-Pass:
    Iterate until the string returned is the same as the
    string in ouput.
    .
    .
    

APAR Information

  • APAR number

    HD64887

  • Reported component name

    CATIA V5 NT>XP

  • Reported component ID

    569151000

  • Reported release

    517

  • Status

    CLOSED SUG

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-06-06

  • Closed date

    2007-06-07

  • Last modified date

    2007-06-07

  • 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":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSVJ2K","label":"CATIA"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"517","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
07 June 2007