Filter löschen
Filter löschen

Matlab Script to automate SolidWorks Operations

25 Ansichten (letzte 30 Tage)
Abu Hena Md Mahbub Morshed
Abu Hena Md Mahbub Morshed am 20 Jul. 2014
Beantwortet: Keerthi Reddy am 5 Jul. 2023
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.

Antworten (1)

Keerthi Reddy
Keerthi Reddy am 5 Jul. 2023
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.

Kategorien

Mehr zu Simscape Multibody finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by