Run-time messages generated by sub circuits

Hi,
is there any option to generate a message to the “Simulation - Output Window” from a sub circuit at simulation run-time?

Background of this question: I would like to build sub circuit models with checks for some conditions, e.g. too high voltage ratings, and then generate warnings to the user of the model.

Thanks and BR.

It seems only DLL-Block (Ø-Device) can return message in output window.
Here is an example for your reference.

warningmsg.qsch (1.3 KB)
warningmsg.cpp (3.4 KB)

Thank you KSKelvin for the response. Good to know that it is possible in the DLL-Block. In my opinion it would be very helpful if this could be implemented in future also in the sub-circuit-Block (X-Device).

Actually, the Ø-Device (DLL block) can be a part of a .subckt in Qspice. Here is an example where the above DLL block is built into a subckt. The only additional item you need is to share the .dll file along with the subckt symbol you created.

In Qspice, there is a Qorvo library created in this manner.