通过门dxl中的开放模块导航(navigating thru open modules in doors dxl)

编程入门 行业动态 更新时间:2024-10-28 09:16:07
通过门dxl中的开放模块导航(navigating thru open modules in doors dxl)

在操作门模块时,是否有人知道如何浏览开放模块。 如果这看起来令人困惑,我可以使用这个例子。 在我的脚本中,我打开了2个模块。

模块苹果

模块葡萄

我在模块apple中做了一些工作,然后打开模块葡萄来做一些工作。 我要做的就是这个......切换回模块apple并做更多的工作。 我意识到我可以使用edit()或read()函数,但我认为这将重新打开已经打开的模块,这意味着我之前完成的工作将被删除。 我几乎会尝试在模块之间切换,每个模块在我之前离开的位置每次都会聚焦1。

有任何想法吗? 提前致谢!

When manipulating doors modules, does anyone know how to navigate through open modules. If this seems confusing I can use this example. In my script I open 2 modules.

Module apple

Module grape

I do some work in module apple, and then open module grape to do some work. What I'm looking to do is this... switch back to module apple and do some more work. I realize I could use the edit() or read() functions, but I assume this would re-open the already open module meaning my work done previously would be erased. I pretty much would try and switch between the modules where each would be in focus 1 at a time at the position I previously left off.

Any ideas? Thanks in advance!

最满意答案

您还可以将它们分配给变量并来回切换。

Module A = apple Module G = grape for object in A do { //something on the objects in A } for object in G do { //something on the objects in G } for object in A do { //back to A }

在关闭模块之前,它们将以您启动的模式保持打开状态。另外,为了回答您关于read()和edit() ,这些函数不会打开新实例或刷新您已完成的工作。 他们将尊重模块的当前状态,并为您提供一个句柄(除非您更改模式,编辑阅读会询问您是否要保存更改)。 所以两种方法都有效。 很高兴你找到了解决方案,但未来祝你好运。

You can also assign them to variables and switch back and forth.

Module A = apple Module G = grape for object in A do { //something on the objects in A } for object in G do { //something on the objects in G } for object in A do { //back to A }

Until you close the modules they remain open in the mode you started in. Also in response to your question about read() and edit(), those function do not open a new instance or refresh the work you have done. They will respect the current status of the module and give you a handle back to it (unless you change modes, edit to read would ask you if you want to save your changes). So either method works. Glad you figured out a solution though, good luck in the future.

更多推荐

本文发布于:2023-07-30 11:16:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1337902.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模块   navigating   dxl   doors   modules

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!