I would like to use the API and the macro to modify and animations.
I am using "motion type - data points - load CSV file" to drive the motor.
I would like to ask that I can do followings.
Change the contents of the CSV file used
-> Rebuild motion study
-> The motion data of the animation is changed also in accordance with the modified CSV file.
Access "motor type - edit" (by macro or API)
-> Change CSV data by using macro (or API)
(and I could not find code of it. It does not exist?)
The CSV file is just a text file where all rows separated by new lines and all cells in a row separated by comma. So you need to read text file and parse the cells values (it is not a SolidWorks API rather standard VBA functions).
then you can use this method to load the data into your motor feature: 2015 SOLIDWORKS API Help - LoadSplineData Method (ISimulationMotorFeatureData)
Retrieving data ...