Selecting motor in motion study

I want to select motor in motion study but the recorde Macro return back nothing the program is As follow:

Please let me know if there is solution

Thanks in advance.

Set Part = swApp.ActiveDoc

Dim myModelView As Object

Set myModelView = Part.ActiveView

   myModelView.FrameState = swWindowState_e.swWindowMaximized

  boolstatus = Part.Extension.SelectByID2("LinearMotor1", "SIMULATION_ELEMENT", 0, 0, 0, False, 0, Nothing, 0)

SolidworksApi macros