Page 1 of 1

How to add new components in the osim file

Posted: Tue Apr 19, 2011 12:46 am
by porsasina
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

RE: How to add new components in the osim file

Posted: Thu Apr 21, 2011 10:40 am
by aymanh
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

RE: How to add new components in the osim file

Posted: Wed May 25, 2011 4:53 pm
by gphilips3
Is there an example to add an external force to a joint or other body?