IBM Support

HD83160: VBA MACRO FAILS TO OPEN A PART

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as user error.

Error description

  • VBA Macro fails to open a part
    Summary:
    Attached VBA code does not run correctly in
    R18SP8 even though the Ref
    Settings have not been changed.
    We need to understand if this is working as
    designed and has been
    changed since R18SP6 or whether this is a bug.
    .
    Code does not run correctly in R18SP8 even
    though the Ref Settings have not been changed.
    We believe something has changed since R18SP6 -
    as the code ran with no issues.
    The failure happens on opening of documents
    Documents exist in a directory that has not been
    declared as a DLName Configuration of DL Names
    does not work Need to understand if this is working
    as designed and has been changed since R18SP6
    or whether this is a bug?
    .
    Scenario
    o Create a part and place it in:
    o C:\Temp\
    o Don't add a DLName for this directory
    o Make sure folder is not allowed
    o Run the (attached) VBA code
    .
    << see image in supplied PPT >>
    .
    Sub CATMain()
    Dim FileName As String
    Dim documents1 As Documents
    Dim Document1 As Document
    .
    FileName = "C:\Temp\test.CATPart"
    ' open the drawing that contains the titleblock that
    we want
    Set documents1 = CATIA.Documents
    Set Document1 = documents1.Open(FileName)
    End Sub
    .
    Tools > options > General > Document > DLNames
    >
    Configure
    .
    << see 2 images in PPT >>
    .
    If the DL Name does not exist and we run the script
    we get the
    following:
    .
    << see image in PPT >>
    .
    Message states:
    .
    Drag & Drop Error
    C:\temp\test.CATPart File cannot be accessed
    OK
    .
    .
    

Local fix

Problem summary

Problem conclusion

Temporary fix

Comments

  • This is working as designed.
    .
    .Incident Diagnosis
    VBA Macro fails to open a part.
    The failure happens on opening of documents
    Documents exist in a directory that has not been
    declared as a DLName.
    .
    .Correct Application
    This is working as designed.
    If the Folder (default document environment) in
    which the dialog access any folder containing the
    documents is set to Not allowed this means that
    you can not access documents related to this
    environment via the Browse window which opens
    when you select File > Open.
    See CATIA Online Documentation:
    \online\bascugen_C2\bascudocument0000.htm
    .
    .Documentation Reference
    CATIA Online Documentation
    Customizing
    Document
    .
    

APAR Information

  • APAR number

    HD83160

  • Reported component name

    CATIA V5 NT>XP

  • Reported component ID

    569151000

  • Reported release

    518

  • Status

    CLOSED USE

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-03-12

  • Closed date

    2009-03-13

  • Last modified date

    2009-03-13

  • 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":"518","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
13 March 2009