Accessing ligament class via API

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Peter Bishop
Posts: 21
Joined: Thu Aug 28, 2014 10:47 pm

Accessing ligament class via API

Post by Peter Bishop » Mon Jul 02, 2018 12:07 pm

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.

Tags:

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Accessing ligament class via API

Post by jimmy d » Mon Jul 02, 2018 12:32 pm

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)


POST REPLY