# Error Undefined control sequence. \c@lor@to@ps ->\PSTricks

I'm trying to use the code given by Svend Tveskæg, however, when I compile I got this error ! Undefined control sequence. \c@lor@to@ps ->\PSTricks

Drawing 3D Transformer with TikZ or PSTricks [enter link description here][1]

I do compile with PS-PDF but I still get the error

• the error means that you are using the wrong compiler, pstricks needs latex or xelatex. – Ulrike Fischer Oct 19 at 18:41
• – P.M. Oct 19 at 18:42
• I tried xelatex and It didn't work – Diana Oct 19 at 19:04
• xelatex or latex will work, pdflatex will give the error shown. If you get an error show the full log file up to that point. – David Carlisle Oct 19 at 19:28