Missing Parameters when Adding Ligaments / Wrap Sphere
Posted: Mon Sep 09, 2019 5:19 pm
Hi All,
I have attempted running some code (via both Matlab and Python) to add a ligament to a models forceset. This works, however not all of the parameters for the ligament end up written in the model - only the resting length and PCSA force parameters go across. This is despite additional information, such as a spline function, seemingly being present within the object in Matlab/Python (i.e. when running the '.dump()' command the information is there). I have been adding the ligament to the model using the '.adoptAndAppend()' and '.finalizeConnections()' command to the forceset, which obviously works but doesn't take across all the parameters when printing the model. Has anyone had a similar experience or any advice in changing the approach to get all of the parameters across?
One additional problem I've also come across in this process is in he creation of a wrap sphere, there doesn't appear to be a command to set the radius of the sphere programatically (i.e. there is no '.setRadius()' or '.set_radius()' type commands for this class). When added to the model this parameter defaults to a -1 and can be changed manually in the printed model file. Is there such a method to do this in Matlab/Python?
Thanks,
Aaron
I have attempted running some code (via both Matlab and Python) to add a ligament to a models forceset. This works, however not all of the parameters for the ligament end up written in the model - only the resting length and PCSA force parameters go across. This is despite additional information, such as a spline function, seemingly being present within the object in Matlab/Python (i.e. when running the '.dump()' command the information is there). I have been adding the ligament to the model using the '.adoptAndAppend()' and '.finalizeConnections()' command to the forceset, which obviously works but doesn't take across all the parameters when printing the model. Has anyone had a similar experience or any advice in changing the approach to get all of the parameters across?
One additional problem I've also come across in this process is in he creation of a wrap sphere, there doesn't appear to be a command to set the radius of the sphere programatically (i.e. there is no '.setRadius()' or '.set_radius()' type commands for this class). When added to the model this parameter defaults to a -1 and can be changed manually in the printed model file. Is there such a method to do this in Matlab/Python?
Thanks,
Aaron