For PLAXIS 2D or 3D CONNECT edition V22, in order to define a soil/rock material with a specific soil model directly via the command line or via remote scripting, you can use e.g.
soilmat "Identification" "Sand" "SoilModel" 2 "ERef" 2500
soilmat "Identification" "Sand" "SoilModel" "Mohr-Coulomb" "ERef" 2500
set Sand.SoilModel "Hardening Soil"
set Sand.SoilModel 3
setproperties Sand "SoilModel" "Hardening Soil" "EURRef" 3000
As can be seen in the commands above, the name of the soil model (e.g. Mohr-Coulomb) can be represented by a number or string. In the table below you can see the currently available soil models, their ID number to be used in the command line/remote scripting and the minimum defined parameters that are needed for a correct soil model definition that is accepted by the PLAXIS Input program.
For more information on how to define or edit a material via the command line, refer to the article How to define and edit a material via the command line.
For more details, check the Command reference under the Help menu.