How to properly run a catia macro through matlab?

조회 수: 6 (최근 30일)
David Mrozek
David Mrozek 2021년 3월 13일
댓글: Mario Malic 2021년 3월 13일
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']));
end
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
Mario Malic
Mario Malic 2021년 3월 13일
This is the CATIA related question, search on their forum 3dsexperience.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Variables에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by