How to add new components in the osim file

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Sina Porsa
Posts: 99
Joined: Thu Feb 03, 2011 7:21 pm

How to add new components in the osim file

Post by Sina Porsa » Tue Apr 19, 2011 12:46 am

Hi all;
I was trying to find a document that explains how to add different available components to a *.osim file. say I want to add a spring, a damper, a force,etc.
According to doxyjen documents, I know they are available, but how can I add them to the OSIM file?
Cheers,
Sina

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

RE: How to add new components in the osim file

Post by Ayman Habib » Thu Apr 21, 2011 10:40 am

Hi Sina,

The osim file is an xml file that you can edit using any text editor or xml editor (e.g. XMLMarker) which would allow you a higher level view of the file where you can collapse/expand parts as needed. The file layout is described in the user guide (Chapter 24). As to the available object types and the corresponding XML representation, I'd recommend using the new "Help -> Available Objects" option in the GUI, to show the XML representation then copying it, populating it as needed then pasting under the appropriate spot in the osim file.

Please let me know if that answers your question, or if you have a question about a specific component.

Best regards,
-Ayman

User avatar
Gregory Philips
Posts: 33
Joined: Thu Aug 07, 2008 12:49 am

RE: How to add new components in the osim file

Post by Gregory Philips » Wed May 25, 2011 4:53 pm

Is there an example to add an external force to a joint or other body?

POST REPLY