SW API to set motor motion using user SldFNC

Hi SWusers,

Happy New Year for ALL!

I want to use Solidworks API to automate setting motor movement in Motion using my own SldFnc function.

How can I do that?

or 

How can I modify an existent movement curve from motor defined by segments? (this could be another option to fulfill my task)

A short API examples please. I have an assembly with motor defined.


Best regards,

Ciprian Dragne

Edu ​​​​​​​3DEXPERIENCE SOLIDWORKS ​​​​​​​