要删除然后在同一位置重新创建障碍物,请使用两行代码,因为代码只是将其视为两个不同的障碍物:
&DEVC XYZ=1.2,3.4,5.6, ID='timer1 ', QUANTITY='TIME',
SETPOINT=30., INITIAL_STATE=.TRUE。/
&DEVC XYZ=1.2,3.4,5.6, ID='timer2', QUANTITY='TIME',
SETPOINT=60., INITIAL_STATE=.FALSE。/
&OBST XB=2.3,4.5,1.3,4.8,0.0,9.2,
SURF_ID='砖墙', DEVC_ID='timer1' /
&OBST XB=2.3,4.5,1.3,4.8,0.0,9.2,
SURF_ID='砖墙' , DEVC_ID='timer2' /