autocad redefine plot command alongside ProjectWise integration

Hello,

We need to add our own custom commands with the autocad plot command.

How do we do this with PW integration installed?

I provided a ACAD2016DOC.LSP (see below); this LISP is being used by autocad (civil 3d) the second line (custom command) is "doing its job" . BUT the redefine of the PLOT command is probably ignored or overruled by a PW integration redefine of the PLOT command ...  ???

Thx for reading..  Kevin..

(command "_netload" "C:/........CUSTOM.DLL")
(command "CUSTOM1")
(command "dmsoff")
(command "undefine" "plot")
(defun c:PLOT ( )
(command "CUSTOM1")
(initdia)
(command ".plot")
)
(command "dmson")