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
How to add new components in the osim file
- Sina Porsa
- Posts: 99
- Joined: Thu Feb 03, 2011 7:21 pm
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
RE: How to add new components in the osim file
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
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
- Gregory Philips
- Posts: 33
- Joined: Thu Aug 07, 2008 12:49 am
RE: How to add new components in the osim file
Is there an example to add an external force to a joint or other body?