IBM Support

HD79037: Open Status whereas the Part propertiy is modified by Macro .

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Abstract:
    Open Status whereas the Part propertiy is modified by Macro .
    .
    Description:
    Activate the cache management in CATIA
    1- Create a new product A1
    2- insert in this product a new part P1.
    3- Save the product A1 and the PArt P1 on your local disk
    4- close and reopen the product A1.
    ---> P1 is in visumode
    5-Launch the attached CATScript.
    .
    Sub CATMain()
    Dim doc
    Dim collec_prod
    Dim prod
    Dim refprod
    .
    set doc = CATIA.ActiveDocument
    set collec_prod = doc.Product.Products
    set prod = collec_prod.Item(1)
    prod.ApplyWorkMode DEFAULT_MODE
    set refprod = prod.ReferenceProduct
    refprod.DescriptionRef = "toto"
    .
    End Sub
    .
    The goal of this script is to switch in design mode, the part P1
     and to modify its internal property description.
    ==> Result the description is well modified in the CATPart, but
    the status of the part is still open is save management.
    It should be modified.
    .
    The customer should develop an integration by Vb for the final c
    ustomer.
    That's why a Critsit is request on this topic.
    I have propopssed to use the following script as by pass, but th
    e customer does not accept it, because when he
    modifies several parts, CATIA flashes each time he opens or clos
    es the part.
    .
    Sub CATMain()
    Dim doc As Document
    Dim collec_prod As Products
    Dim prod As Product
    Dim refprod As Product
    Set doc = CATIA.ActiveDocument
    Set collec_prod = doc.Product.Products
    Set prod = collec_prod.Item(1)
    prod.ApplyWorkMode DEFAULT_MODE
    Set refprod = prod.ReferenceProduct
    Dim PartDoc As PartDocument
    Set PartDoc = refprod.Parent
    CATIA.Documents.Open PartDoc.FullName
    CATIA.ActiveDocument.Product.DescriptionRef = "toto"
    CATIA.ActiveDocument.Close
    .
    End Sub
    

Local fix

Problem summary

  • Abstract:
    Open Status whereas the Part propertiy is modified by Macro .
    .
    Description:
    Activate the cache management in CATIA
    1- Create a new product A1
    2- insert in this product a new part P1.
    3- Save the product A1 and the PArt P1 on your local disk
    4- close and reopen the product A1.
    ---> P1 is in visumode
    5-Launch the attached CATScript.
    .
    Sub CATMain()
    Dim doc
    Dim collec_prod
    Dim prod
    Dim refprod
    .
    set doc = CATIA.ActiveDocument
    set collec_prod = doc.Product.Products
    set prod = collec_prod.Item(1)
    prod.ApplyWorkMode DEFAULT_MODE
    set refprod = prod.ReferenceProduct
    refprod.DescriptionRef = "toto"
    .
    End Sub
    .
    The goal of this script is to switch in design mode, the part
    P1 and to modify its internal property description.
    ==> Result the description is well modified in the CATPart,
    but the status of the part is still open is save management.
    It should be modified.
    .
    The customer should develop an integration by Vb for the
    final customer.
    That's why a Critsit is request on this topic.
    I have propopssed to use the following script as by pass, but
    the customer does not accept it, because when he
    modifies several parts, CATIA flashes each time he opens or
    closes the part.
    .
    Sub CATMain()
    Dim doc As Document
    Dim collec_prod As Products
    Dim prod As Product
    Dim refprod As Product
    Set doc = CATIA.ActiveDocument
    Set collec_prod = doc.Product.Products
    Set prod = collec_prod.Item(1)
    prod.ApplyWorkMode DEFAULT_MODE
    Set refprod = prod.ReferenceProduct
    Dim PartDoc As PartDocument
    Set PartDoc = refprod.Parent
    CATIA.Documents.Open PartDoc.FullName
    CATIA.ActiveDocument.Product.DescriptionRef = "toto"
    CATIA.ActiveDocument.Close
    .
    End Sub
    

Problem conclusion

  • NOTE THAT THIS PROBLEM WILL ALSO BE FIXED ON V5R18 SP8.
    NOTE THAT THIS PROBLEM WILL ALSO BE FIXED ON V5R19 SP3.
    NOTE THAT THIS PROBLEM WILL ALSO BE FIXED ON V6R2010 Beta0910.
    Additional Closure Information:
    THIS PROBLEM WILL BE FIXED ON CATIA VERSION
    5 RELEASE 20 GA LEVEL.
    NOTE THAT THIS PROBLEM WILL ALSO BE FIXED
    ON V5R19SP03
    NOTE THAT THIS PROBLEM WILL ALSO BE FIXED
    ON V5R18SP08
    Additional Closure Information:
    .
    Incident Diagnosis
    Open Status whereas the Part propertiy is modified
    by Macro
    .
    Correction Explanation
    no transaction was opened on the document
    explaining that its modified status was not taken
    into account
    .
    Answer and By-Pass
    call to NewTransaction has been added to
    ApplyWorkMode from CATIAProductImpl (used by
    VB Macros)
    

Temporary fix

Comments

APAR Information

  • APAR number

    HD79037

  • Reported component name

    CATIA V5 NT>XP

  • Reported component ID

    569151000

  • Reported release

    518

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-10-22

  • Closed date

    2010-02-08

  • Last modified date

    2010-02-08

  • 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

  • R518 PSN

       UP

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

Document Information

Modified date:
08 February 2010