Borrar filtros
Borrar filtros

Matlab Script to automate SolidWorks Operations

25 visualizaciones (últimos 30 días)
Abu Hena Md Mahbub Morshed
Abu Hena Md Mahbub Morshed el 20 de Jul. de 2014
Respondida: Keerthi Reddy el 5 de Jul. de 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.

Respuestas (1)

Keerthi Reddy
Keerthi Reddy el 5 de Jul. de 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.

Categorías

Más información sobre Simscape Multibody en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by