IBM Support

HD35054: MAKRO PROGRAMMING : CATIA ABEND WHILE ACCESSING SELECTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as documentation error.

Error description

  • Macro Programming : CATIA ABEND while
    accessing Selection with VB . NET
    Scenario:
    While creating a Out-Process Macro with Visual
    Basic .NET:
    Code Example :
    Sub Main()
    Dim CATIA as INFITF.Application
    CATIA = GetObject(,"CATIA.application")
    Dim oDocument as INFITF.Document
    oDocument = CATIA.ActiveDocument
    Dim oSelection as INFITF.Selection
    oSelection = oDocument.Selection
    ....
    End Sub
    We get an error message: "A Server exception
    occurs". After that, CATIA closes whithout any
    further message. This problem seems to come
    from selection
    .
    

Local fix

Problem summary

  • Makro Programming : CATIA ABEND while accessing Selection
    Macro Programming : CATIA ABEND while
    accessing Selection with VB . NET
    Scenario:
    While creating a Out-Process Macro with Visual
    Basic .NET:
    Code Example :
    Sub Main()
    Dim CATIA as INFITF.Application
    CATIA = GetObject(,"CATIA.application")
    Dim oDocument as INFITF.Document
    oDocument = CATIA.ActiveDocument
    Dim oSelection as INFITF.Selection
    oSelection = oDocument.Selection
    ....
    End Sub
    We get an error message: "A Server exception
    occurs". After that, CATIA closes whithout any
    further message. This problem seems to come
    from selection
    .
    

Problem conclusion

  • THIS MODIFICATION WILL BE INCLUDED IN CATIA
    DOCUMENTATION DELIVERED WITH CATIA
    VERSION 5 RELEASE 15.
    NOTE THAT DOCUMENTATION WILL ALSO BE
    INCLUDED IN V5R14SP05.
    Incident Diagnosis :
    CATIA does not support Visual Basic .NET
    Correct Application :
    use Visual Basic 6
    Documentation Reference :
    Automation Documentation Home Page
    "3D PLM entretrise Architecture"\"Middleware"
    Invoking CATIA from a Scripting Language
    Automation Documentation
    Infrasrtucture technical articles
    Invoking CATIA from a scripting language
    MODIFICATION:
    In-process access using Visual Basic Scripting
    Edition or Visual Basic for Application since CATIA
    hosts both scripting engines.
    Out-process access from the following OLE
    Automation clients:
    Visual Basic for Applications via other applications
    like those of Office
    Visual Basic 6 Development Studio
    Windows Scripting Host and scripting languages
    such as VB Script or JScript
    an a html page
    .
    

Temporary fix

Comments

APAR Information

  • APAR number

    HD35054

  • Reported component name

    CATIA V5 NT>XP

  • Reported component ID

    569151000

  • Reported release

    514

  • Status

    CLOSED DOC

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2005-02-11

  • Closed date

    2005-02-25

  • Last modified date

    2005-02-25

  • 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":"514","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
25 February 2005