Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matlab to Solidworks transfer

Status
Not open for further replies.

jmendi

Student
Feb 18, 2021
2
I am trying to simulate electrospinning manufactured fibers. As electrospinning creates randomly oriented fibers, my approach is to create those fibers with Matlab (they are hollow cylinders), then open those with Solidworks (because some changes have to be made) and finally open them in the simulation software.

Does anybody have a clue on how can I export those fibers onto Solidworks?



 
Replies continue below

Recommended for you

jmendi,

You can export numerical data to CSV (comma separated values), export that to Microsoft Excel, and that use the design tables in SolidWorks.

--
JHG
 
Hi drawoh,

Your advice was very usefull, I have managed to export points on csv format. With two points it creates a line (which is close to what I want), but when I add more points for the next line, SW connects the points and creates an irregular line, instead of another different line (see the picture).
Captura_evwcy8.jpg


If I try adding two points for each line (separately) I can add more lines but I have 1000 lines and it would require a lot of time to implement each of them manually. Any idea on how to solve this problem?

Thank you so much for your attention.
 
jmendi,

If you want to drawing separate lines, you need to automate SolidWorks. Can you do your calculations in VisualBasic?

--
JHG
 
Try putting a blank row between the coordinates of the individual fibres.

ie

X1s Y1s Z1s
X1e Y1e Z1e

X2s Y2s Z2s
X2e Y2e Z2e


Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor