IBM Support

HD59584: ON CATPARTS GETMATERIALONPRODUCT HANGS UP CATIA

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as user error.

Error description

  • On CATParts GetMaterialOnProduct hangs up CATIA
    1) Open Part_XXX.CATPart
    2) Go to Tools - Macro - Macros
    3) Run Macro1.catvbs
    Actual Result:
    Catia hangs: no icon can be selected, no
    rotation....
    Expected Result:
    CATIA should return the material without hang.
    .
    

Local fix

Problem summary

Problem conclusion

Temporary fix

Comments

  • Hello L1,
    .
    This is an user error.
    .
    The GetMaterialOnProduct function has to be
    called with a Product. In the given script it was
    called on the CATIA.ActiveDocument which causes a
    type mismatch.
    The model is made of a material applied on a
    Part. So you have to call the right function on it
    : GetMaterialOnPart and not GetMaterialOnProduct.
    So you also need to change the support on which
    you want to retrieve the material to
    CATIA.ActiveDocument.Part.
    .
    Please find the below modified script:
    Sub CATMain()
    Set oManager =
    CATIA.ActiveDocument.Product.GetItem
    ("CATMatManagerVBExt")
    Set oProduct = CATIA.ActiveDocument.Part
    Dim oAppliedMaterial
    oManager.GetMaterialOnPart oProduct,
    oAppliedMaterial
    msgbox oAppliedMaterial.Name & ":" &
    typename(oAppliedMaterial)
    End Sub
    .
    Documentation Reference
    Automation Documentation Homepage
    Materials
    Applying or Retrieving a Material on a Product, a
    Part, or a
    Body
    .
    Regards,
    CAA maint. team
    .
    

APAR Information

  • APAR number

    HD59584

  • Reported component name

    CATIA V5 NT>XP

  • Reported component ID

    569151000

  • Reported release

    517

  • Status

    CLOSED USE

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2006-11-28

  • Closed date

    2007-01-17

  • Last modified date

    2007-01-17

  • 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 V5"},"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:
17 January 2007