Hi guys!

I try this
to get a gear of two SQUARE tooth wheels. I have downloaded and installed ACAD especially for the project. For now I could run the script to get a result curve (made out from big white wheel on the left) for primitives (triangle, square, ellipse, etc.) I draw in small red circle on the right.

Almost everything seems to be okay but when I try to paste there (to the right red circle) ready made and complicated pattern (tooth wheel) from another CAD software the script goes ERROR. Where my mistake is? Please answer in most common words to let me know you’re interested in further conversation. Then I put more specific and detailed questions.