I have successfully used the Matlab-CATIA-link with Matlab 2022b and CATIA V5R2021 as described here:
After the update to Matlab 2024b, the handles of various objects that are created in Matlab are not transfered properly anymore.
For example, the following code produces different results with the latest Matlab Version: (given, that there is an
catia = actxserver('catia.application');
Docs=get(catia,'Documents');
In Matlab 2022b, this would produce (when checking the created variable or object in matlab)
Docs = 1x1 Documents, val = Interface.catia_application.Documents
In Matlab 2024b, the following is created:
Docs = 1x1 catia_application_Handle_Unknown, val = Interface.catia_application_Handle_Unknown
That means, i can create a new part in catia with the following matlab code:
Doc = invoke(Docs,'Add','Part');
but since only unknown handles are created in matlab, i cannot go further and create planes or sketches in this .
What was changed between the two matlab versions and how can i proceed with Matlab2024b?
The obvious solution could be, to continue using Matlab2022b, but this cannot be a long term solution....
best regards
Philipp