Skip to content

Insert Bundle Unbundle

nevstop edited this page Sep 29, 2026 · 2 revisions

Inserts a Bundle/Unbundle pair for the selected wires. The selected wires are bundled into one cluster in top-to-bottom order, unbundled again, and reconnected to their original source and sink terminals, so the data flow is unchanged.

Limits: a selected wire may have only one downstream terminal (no branches). A wire with branches is reported as an error and the diagram is left unchanged.

Inputs:

  • QD Launch VI Ref - the VI QuickDrop was launched from; its block diagram selection is used (normal use).
  • Diagnostic VI Path - when not empty, the VI at that path is opened instead and every wire on its diagram is processed, then the VI is saved (testing and batch use).

Outputs:

  • error out - reports an error when the selection is not made of wires, holds fewer than two wires, or contains branches.
  • changes made? - whether the diagram was modified.

The undo transaction is managed by the caller (the QuickDrop plugin template).


对选中的多条 wire 插入一对 Bundle/Unbundle:把选中的 wire 按自上而下的位置顺序 Bundle 成一个簇,再 Unbundle 回来并接回原来的源端子与下游端子,数据流保持不变。

限制:每根选中的 wire 只能有一个下游端子(无分叉)。存在分叉时报错并放弃,不改动框图。

输入:

  • QD Launch VI Ref - QuickDrop 启动所在的 VI,取其程序框图的 Selection List[](正常使用方式)。
  • Diagnostic VI Path - 非空时改为打开该路径的 VI,并对该框图内所有 wire 操作,结束时保存该 VI(测试/批处理用)。

输出:

  • error out - 选中对象不全是 wire、少于 2 根或存在分叉时返回错误。
  • changes made? - 是否实际改动了框图。

Undo 事务由调用方(QuickDrop 插件模板)管理。

Clone this wiki locally