Subcircuits

You can use subcircuits to implement custom "black box" devices.

Create and test your device, and then use labeled nodes (under "Outputs and Labels") to mark and label all the inputs/outputs. Here is an example circuit (a bridge rectifier).

Then, select File->Create Subcircuit, then rearrange the pins the way you want them, enter a model name, and click OK. This will load the subcircuit model. Be sure to save this circuit (the subcircuit implementation), because it can't be edited later otherwise.

Now you can create a circuit using the subcircuit model. Here is an example using the rectifier. When you save/load this circuit, it will also save/load the subcircuit model so you can use it in other circuits.

You can also use subcircuits to rearrange pins on the built-in chips. Here is an example with the 555. And here is that subcircuit model being used in a circuit.

If you select part of a circuit before using File->Create Subcircuit, then only the selected elements will be considered part of the subcircuit.

If you want to use labeled nodes in the subcircuit definition but don't want them to be one of the inputs/outputs, then check the "Internal Node" checkbox in those labeled nodes' edit menus.