필터 지우기
필터 지우기

Matlab Script to automate SolidWorks Operations

조회 수: 25 (최근 30일)
Abu Hena Md Mahbub Morshed
Abu Hena Md Mahbub Morshed 2014년 7월 20일
답변: Keerthi Reddy 2023년 7월 5일
I am working on modelling a cellular structure in Matlab. Right now I want to create the solid model of this cellular structure in SolidWorks. I was wondering if I can write a script in Matlab which will automate the SolidWorks operations to create the solid model.

답변 (1개)

Keerthi Reddy
Keerthi Reddy 2023년 7월 5일
Hi Abu,
It is possible to automate SolidWorks operations using MATLAB. SolidWorks provides an API called SolidWorks API that allows you to control SolidWorks programmatically. MATLAB can interact with SolidWorks API using the COM interface.
To get started, you need to establish a connection between MATLAB and SolidWorks using the actxserver function. Here's an example of how you can create a connection to SolidWorks:
% Create a connection to SolidWorks
swApp = actxserver('SldWorks.Application');
Once the connection is established, you can use MATLAB to control SolidWorks and perform various operations such as creating parts, assemblies, features, and modifying existing models. You can access the SolidWorks API documentation for a complete list of available functions and methods. Remember to release the SolidWorks application object and close the connection when you're done. Also please keep in mind that you need to have SolidWorks installed on your machine for this to work.
Hope this helps.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by