Modify Linear motor

Hello

I have defined distance Linear motor in my Assembely,

how can i modify the data of motor in macro?

i know this stuff for crating motor but i want to modify the existance motor.

Set swMotorFeat = swMotionStudy3.CreateDefinition(swFmAEMLinearMotor)

    If swMotorFeat Is Nothing Then

       Debug.Print "ERROR: Creation of motor feature data object failed."

        Exit Sub

    End If

  

    ' Set some options

    swMotorFeat.InterpolatedMotor swSimulationMotorDrive_Velocity, 1

    swMotorFeat.DirectionReference = swSelMgr.GetSelectedObject6(1, -1)

    boolstatus = swMotorFeat.LoadSplineData("Test_bouncingBall.csv")

SolidworksApi macros