language switch_to python

Switches the active scripting language Python.
Provided for use in a cmd script that has a mix of cmd and python commands.

Extended Definition:

It is possible to mix cmd and adamspy (Adams Python Interface) commands in a cmd script.
The "language switch_to python" command indicates that the subsequent commands in the cmd script are adamspy commands. To switch back to cmd from adamspy, use the Adams.switchToCmd() method of adamspy.

Example:

model create model_name = MODEL_1
part create rigid_body name_and_position part_name = PART_1
language switch_to python
m = Adams.defaults.model
p = m.Parts['PART_1']
mar = p.Markers.create(name = 'MARKER_1')
Adams.switchToCmd()
marker modify marker_name = MARKER_1 location = 100.0, 100.0, 0.0