It is not possible to create "custom shapes" in BizTalk 2006.
You can, however, call any .net code from an expressio shape.
Add a reference to your porject or assembly from the BizTalk project and then –
If your method is static – simply use it from an expression shape
If your method is not static – declare a variable of the type of your class in the orchestration view and use it in the expression shape.
It is worth remembering that it is possible to declare variable in a scope to release resources early and reduce the memory footprint of your process
Yossi Dahan