In Virtuoso there is a switch called spxtswitch
which can be configured to open/closed for each type of simulation (transient, ac, etc.). This can be useful for many purposes, but for example if we want to characterize the open and closed loop behavior of a circuit with different simulation types or to “add” circuitry for a particular type of simulation.
One way to allow for this would be to expose the simulation type via the C++ interface. That way, a switch or any arbitrary logic could dispatch on the simulation type.