Hello,
I've got ligaments in my model and am trying to access the ligament class through the API (via MATLAB), but have been unable to find the way to do so. I can access the ForceSet class in my model (i.e., getForceSet), but haven't found where the ligaments may exist within that.
Any help would be much appreciated. Thanks!
Peter Bishop.
Accessing ligament class via API
- Peter Bishop
- Posts: 21
- Joined: Thu Aug 28, 2014 10:47 pm
Re: Accessing ligament class via API
Code: Select all
m = Model('modelWithLigament');
fset = m.getForceSet();
% where i is the index of the ligament
ligament_force = fset.get(i);
% Safe Down Cast from the force class to the Ligament class
ligament = Ligament.safeDownCast(ligament_force)