MATLAB Answers

How to properly run a catia macro through matlab?

14 views (last 30 days)
David Mrozek
David Mrozek on 13 Mar 2021
Commented: Mario Malic on 13 Mar 2021
Hello everyone,
I have created a bunch of txt files named TEST in matlab and renamed its extension to .catvbs through this code:
directory = 'C:\Folder1\Programm';
fileList = dir(fullfile(directory,'*.txt'));
for i = 1:numel(fileList)
file = fullfile(directory, fileList(i).name);
[tempDir, tempFile] = fileparts(file);
status = copyfile(file, fullfile(tempDir, [tempFile, '.catvbs']));
Now I would like to run one makro for a test purpose from matlab via a COM interface since I am working from a windows pc. However, I am unable to find a working command that lets me run this makro. It would be great if you could help me in achiving this goal.
  1 Comment
Mario Malic
Mario Malic on 13 Mar 2021
This is the CATIA related question, search on their forum 3dsexperience.

Sign in to comment.

Answers (0)




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by