请教一个ANSYS的循环语句问题,有命令请各位帮忙检查一下? 100

浏览:1294 回答:1

帮忙看一下命令里的感叹号中间的语句,为什么符合if条件的时候,这个语句无法取消选中相应的线呢?是不是语句写的有问题呢

*DO,jj,-1,1,2

*DO,ii,1,120,1

wplane,-1,9.25*jj,-ycor(gbbh(ii)),xcor(gbbh(ii)),(9.25+1)*jj,-ycor(gbbh(ii)),xcor(gbbh(ii)),9.25*jj,-ycor(gbbh(ii))+sink(gbbh(ii)),xcor(gbbh(ii))+cosk(gbbh(ii))

cswpla,11,0

csys,11

*if,gbbh(ii),le,20,then

fj=0.04

*else

fj=0.036

*endif

lsel,s,loc,z,0,0.0001,,1

lsel,r,loc,x,-4,4

lsel,u,length,,0.3,0.35

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

*DO,aa,1,10,1

*if,gbbh(ii),eq,halfu(aa),then

ksel,s,kp,,(halfu(aa)-1)*60+7+jj*9600,(halfu(aa)-1)*60+20+jj*9600

lslk,u

*cycle

*elseif,gbbh(ii),eq,halfd(aa)

ksel,s,kp,,(halfd(aa)-1)*60+1+jj*9600,(halfd(aa)-1)*60+4+jj*9600

ksel,a,kp,,(halfd(aa)-1)*60+23+jj*9600,(halfd(aa)-1)*60+32+jj*9600

lslk,u

*cycle

*else

*cycle

*endif

*enddo

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

cm,gbline,line

al,gbline

allsel,all

wpcsys,,0

csys,0

*enddo

*enddo


邀请回答 我来回答

全部回答

(1)
默认 最新
synjam

是if语句有问题吗 还是啥 求解答


2021年3月9日
评论 点赞

没解决?试试专家一对一服务

换一批