本人刚学ADAMS,想请教下,以下程序哪里错了?(附上错误提示的截图)
!$part_name:T=STRING
!$center:T=marker
!$edge_no:T=integer=20
!$edge_angle:T=integer=5.8
!$radius:T=integer=200
!$DRIVING_Center_z:T=integer=0
!$ellipsoid_Radius:T=integer=1
var cre var=xxx integer_value=0
var cre var=yyy integer_value=$edge_no
var cre var=zzz integer_value=0
while cond=(xxx<yyy)
var mod var=xxx integer_value=(eval(xxx+1))
if cond=(eval(DB_EXISTS("MARKER_"//xxx)))
var mod var=yyy integer_value=(eval(yyy+1))
continue
end
var mod var=zzz integer_value=(eval(zzz+1))
undo begin
part create rigid_body name_and_position part_name=(eval(".model_1.$part_name"//zzz//" adams_id="//zzz))
part modify rigid_body mass_properties part_name=(eval(".model_1.$part_name"//zzz//"")) &
material=.materials.steel
part attributes part_name=(eval(".model_1.$part_name"//zzz//""))&
color=RED name_vis=off
marker create marker=(eval(".model_1.$part_name"//zzz".MARKER_"//xxx//"")) &
adams_id=(eval(xxx+100))&
location=(eval($radius*COS(zzz*$edge_angle))),(eval($radius*SIN(zzz*$edge_angle))),(eval($DRIVING_Center_z)), &
orientation=0.0,0.0,0.0
geometry create shape ellipsoid &
ellipsoid_name=(eval(".model_1.$part_name"//zzz//". ELLIPSOID _"//zzz//"")) &
x_scale_factor =($ellipsoid_Radius) &
y_scale_factor =($ellipsoid_Radius) &
z_scale_factor =($ellipsoid_Radius) &
center_marker=(eval(". model_1.$part_name"//zzz//".MARKER_"//xxx//""))
undo end
end
var del var=xxx
var del var=yyy
var del var=zzz