vbacatia

Catia Visual Basic Macro - change external reference link


I'm wondering if there is any solution for my problem:

In CatiaV5, is it possible to change the external reference link using an Visual Basic (catvba or catscript) macro? For every CatPart or CatProduct we have an external link to reference like in the picture below:

image here

Thank you very much!


Solution

  • The Link to Reference cannot be altered by API (VBA/CATscript). It is a read-only attribute which shows:

    "C:\TEMP\part1.CATPart" example with filebased

    17_83032|00_A02_-___BROKEN_DRW_LINKS example with database

    However, the Link to Reference will change if you save the part/product to a new location with save as - as also stated here.