社区
Inventor 产品技术应用讨论区
欢迎访问欧特克Inventor论坛!分享知识,发帖提问,浏览Inventor热帖
取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

iLogic Select Case 语句不起作用

3 条回复3
已解决
回复
1 条消息(共 4 条)
badjin
355 次查看, 3 条回复

iLogic Select Case 语句不起作用

最近在学习iLogic的时候,发现用Select Case进行多项选择的时候不起作用,但用if却可以,问题不知道出在哪里?

Rule0 "If Elseif"

badjin_1-1679281370837.png

 

Rule1 "Select Case"

badjin_0-1679281323712.png

 

 

3 条回复3
2 条消息(共 4 条)

case后面直接带值

 

Select Case Monitor_atand_type
	
Case  "Type A"
	Component.IsActive("B:1") = True
	Component.IsActive("C:1") = False
	
Case  "Type B"
	Component.IsActive("B:1") = False
	Component.IsActive("C:1") = True
	
End Select


If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!
如果我的回帖解决了您的问题,请点击 "接受为解决方案" 按钮. 这可以帮助其他人更快的找到解决方案!


王 承之
Autodesk AGN [Inventor 俱乐部] Leader
Inventor Club | Bilibili


AGN L    EESignature

3 条消息(共 4 条)

按你的方法终于可了以,但不是很明白 IF 是直接用 Monitor_atand_type = "Type A" ,而Select则直接用 “Type A”  呢?

4 条消息(共 4 条)

语法格式不同


If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!
如果我的回帖解决了您的问题,请点击 "接受为解决方案" 按钮. 这可以帮助其他人更快的找到解决方案!


王 承之
Autodesk AGN [Inventor 俱乐部] Leader
Inventor Club | Bilibili


AGN L    EESignature

找不到想要的内容?向社区提问或分享您的知识。

到论坛发帖  

”