Import SolidWorks parts to OpenSim

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
User avatar
Karol Marshal
Posts: 3
Joined: Sat Apr 26, 2014 2:42 am

Re: Import SolidWorks parts to OpenSim

Post by Karol Marshal » Tue Apr 29, 2014 2:21 am

nice post.

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: Import SolidWorks parts to OpenSim

Post by Ayman Habib » Tue Apr 29, 2014 10:26 am

Hi Davide,

This method supports only exporting geometry (not articulation or any other features supported in CAD). It might be possible to export the geometry from an assembly to a single file but it will come up "glued" together. Ideally we'd support importing of formats that account for articulation (e.g. collada) but that's not available yet, and would require support from the CAD side as well.

Please submit a feature request as we look into these when we make our release plans.

Best regards,
-Ayman

User avatar
Vishal R
Posts: 47
Joined: Wed Oct 29, 2014 4:20 pm

Re: Import SolidWorks parts to OpenSim

Post by Vishal R » Fri May 22, 2015 10:59 am

resodad wrote:Several people have asked on the forum about importing cad models to OpenSim.
Here is my progress so far using SolidWorks.
Transferring whole assemblies is not possible as of version 2.4.

See the attached pdf file for detailed instructions

In this example a part is added to an OpenSim model of the pelvis-femur, Fig. 1. The part is free to rotate.
solidworks part in OpenSim.jpg
Summary of steps:
Determine the coordinate system used by the OpenSim model.
Design the parts in SolidWorks paying attention to the coordinate system.
Find the mass properties from SolidWorks (Evaluate tab > Mass Properties). Find:
Mass
CG location
Inertia matrix about CG
Add bodies, joints, and coordinates via XML to the OpenSim model.
The attachment cannot be downloaded as it reports the file doesn't exist. Could you please provide the link to download.

Cheers!

User avatar
Gilbert Ngetich
Posts: 1
Joined: Tue Jan 17, 2017 9:27 pm

Re: Import SolidWorks parts to OpenSim

Post by Gilbert Ngetich » Sun Jan 29, 2017 7:48 pm

hi,
I have managed to import .stl file to OpenSim but my problem now is how to rotate the part in OpenSim. It has attached well but the part is perpendicular to the attached part.
Regards Gilbert

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: Import SolidWorks parts to OpenSim

Post by Ayman Habib » Mon Jan 30, 2017 11:16 am

Hi Gilbert,

Any piece of Geometry that you use has an associated transform to translate/rotate it. you can edit that in the GUI by selecting the mesh/stl geometry and modifying the properties in the "Properties" window. The relevant entry is transform and its value is made up of 6 numbers that represent 3 rotations (in radians) followed by 3 translations.

Hope this helps,
-Ayman

User avatar
Marta Carrilho
Posts: 13
Joined: Mon Oct 10, 2016 1:13 am

Re: Import SolidWorks parts to OpenSim

Post by Marta Carrilho » Tue Feb 21, 2017 9:06 am

Hi,

I added a .stl file in Gait2392 model. When I put it in OpenSim GUI everything seems fine. When I try to scale de model it crashes. Any idea how can I solve this?

Thank you,

Marta

User avatar
Euisun Kim
Posts: 4
Joined: Wed Feb 15, 2017 11:41 am

Re: Import SolidWorks parts to OpenSim

Post by Euisun Kim » Thu Feb 23, 2017 12:11 pm

Thanks for kind explanation!

However, I still have issue on constraining all parts together.
I'm trying to import my exoskeleton model in opensim and make the gait2354model to wear this exoskeleton.
But it is really tricky to adjust values in <location></location>(Location of the joint in the child body specified in the child reference frame.) and <orientation></orientation>(Orientation of the joint in the owing body specified in the owning body reference frame.).

How can I know the reference frame of body exoskeleton parts(which is the child body) from stl model?

Thank you.

User avatar
Jimmy Castro
Posts: 1
Joined: Tue Aug 22, 2017 11:33 am

Re: Import SolidWorks parts to OpenSim

Post by Jimmy Castro » Thu Sep 28, 2017 11:48 am

aymanh wrote:Hi Ronald,

Could it be a units issue where the size of the part you added is much bigger than the rest of the OpenSim model so the model either ends up too small or embedded inside the imported part? I'd suggest you hide the imported part and see if the model is still visible.

Please let us know how it goes,
-Ayman
Hi ayman do you send me that pdf please I'm trying to add a prosthesis to the model and analyze loads on the march

User avatar
Cristian Cordova Espinoza
Posts: 1
Joined: Wed Jun 07, 2017 9:53 pm

Re: Import SolidWorks parts to OpenSim

Post by Cristian Cordova Espinoza » Sun Oct 01, 2017 12:13 am

Hola por favor si alguien puede ayudarme.Porque, quiero añadir una prótesis a un modelo desarrollado. Muchas gracias. Saludos desde Perú

User avatar
Daniel Pina
Posts: 32
Joined: Wed Jun 19, 2013 12:08 pm

Re: Import SolidWorks parts to OpenSim

Post by Daniel Pina » Mon Oct 09, 2017 10:13 am

John Rogers (the original poster) made a very good tutorial on how to import new solid geometry to opensim. I'm afraid I can't find it anywhere within the documentation, so here is the PDF:
SolidWorks parts to OpenSim.pdf
(350.3 KiB) Downloaded 176 times
(Note: this is not my doing, it's from John Rogers. I've just had this document in my computer for a couple of years already)

I guess this was available in the original first post of this thread from 2012, but it went missing in the meantime.

POST REPLY