# Why I can not use pst-solides3d [duplicate]

I would really love to use package pst-solides3d to draw 3D solids but so far I haven't been able to work on it. I am just a beginner of using pst-solides3d so and I do not know how to figure this following code out. When I was compiling the simple following code, always was being the error, that is: ! Undefined control sequence. Please anybody helps me with that, many thanks to you.

Code complied:

\documentclass[a4paper]{report}
\usepackage{pst-solides3d}
\begin{document}
\begin{pspicture}(1,1)(2,2)
\psSolid[object=cube,a=2,action=draw*]
\end{pspicture}
\end{document}
• Welcome to TeX.se, and thanks for posting a good minimal example document. You need to compile pstricks code with LaTeX+dvips or XeLaTeX, not pdfLaTeX. – Alan Munn Jun 19 '17 at 3:16
• Or you load auto-pst-pdf after pstricks and add to the command line the --enable-write18 switch (MiKTeX) or -shell-escape (TeX Live, MacTeX). Then you can use pdflatex. – Bernard Jun 19 '17 at 9:25
• Thanks Mister for your helpful supplies. Could you please show me where the "command line" is. It is in Texmaker (that I am using) or in somewhere else ?. Because I do not know where to put "--enable-write18" in. – Nguyễn Hải Duy Jun 19 '17 at 13:31
• \documentclass[a4paper]{report} \usepackage{pstricks} \usepackage{auto-pst-pdf} \usepackage{pst-solides3d} \begin{document} \begin{pspicture}(1,1)(2,2) \psSolid[object=cube,a=2,action=draw*] \end{pspicture} \end{document} (my code is still not OK, error stands still) – Nguyễn Hải Duy Jun 19 '17 at 13:33