Circuit Builder: To Stretch and Connect Wiring from a Nested Template

A marker block is placed at or near the end of a wire on the circuit template that indicates to Circuit Builder that the wire should try and connect to a nearby wire. The marker block should be placed at or near the end of the wire that must stretch.

There are two options that can be used in the MISC1 attribute value.

_WIRESKIP=n

“n” is the number of wires to skip over before connection is attempted. If the _WIRESKIP flag is missing or set to 0, Circuit Builder stretches and connects to the first wire it encounters. If the value is 1, it skips over one wire before trying to make a connection.

_MAXTRAPCOUNT=n

“n” is the number of trap distance units to search for a wire connection. To see the trap distance value for a drawing, look on the Drawing Properties dialog box, Drawing format tab. The trap distance cannot be set. It is calculated from the drawing scale.

Note:

If this value is not defined on the marker block, Circuit Builder uses a distance value equal to 200 times the trap distance value of the drawing.

The CODE value of the marker block must tie in to the (c:ace_cb_stretch_wire_connect #xyz nil #misc1) API call in the spreadsheet. The values on the MISC1 attributes are used for the #misc1 argument.

Note: If the marked wire has a terminal at its end, Circuit Builder stretches the wire and moves the terminal. It stretches based on the origin of the connected terminal rather than the end of the wire.