对话框主要用来设置一些重要参数,或者是可以方面使用者不影响模型的情况下修改一些参数。
1.对话框object所在位置
用户接口>对话框

2、简单的使用方法
在元素页面下,右击添加各种按钮。

3、添加完成后,设置名称如下。

4、然后通过方法下,修改回调函数,来修改参数。如下代码可以实现修改machine1的处理时间。

param action : string
switch action
case "Open"
--enter the processing time of Machine1
--into the text box
对话框.setCaption("procTime_machine1",
to_str(machine1.procTime))
case "Apply" --new procTime machine1
machine1.procTime:=str_to_time(对话框.getValue("procTime_machine1"))
case "Close"
end
关注我,每天更新plantsimulation小知识。
Plantsimulation对话框使用方法

被折叠的 条评论
为什么被折叠?



