Hey,
for SW 2010 i had this code which works very fine:
SimulationMotorFeatureData motorFeat = (SimulationMotorFeatureData)((IFeature)motionFeat[motorNr]).GetDefinition(); | |
bool test = motorFeat.LoadSplineData(motionData); |
Component2 comp = ((Entity)motionFeat[motorNr]).IGetComponent2(); | |
((IFeature)motionFeat[motorNr]).IModifyDefinition2(motorFeat, swDoc, comp); |
Where swDoc is "ModelDoc2 swDoc = (ModelDoc2)swApp.ActiveDoc;"
And motorNr is the number of the motor i wanted to modify.
Fore sure i check wether if it is an motor or not.
motionData is an CSV-File with structure like
0,123
1,454
...
In SW 2011 all points are loaded, too. I checked this with motorFeat.SplineData.
But in SW 2011 GUI under (Right click on a motor -> Datapoints -> edit) the Datapointtable is still empty.
After closing and open the *.sldasm again, splineData are still loaded. Checked again with motorFeat.SplineData.
Why is the table in SW 2011 still empty, although SplineData is not null?
Thanks for help!
SolidworksApi macros