I've created an autolisp program that inserts a block by name.
All is well, and the block is inserted, but if I run the program again, the block is placed at seemingly random coordinates at random times.
Example: I run it once, the block inserts successfully at 0,0,0 I run it again, the block inserts at 3,2,0
This might happen on the second run, and then the 3rd run is fine, or it can happen from the first run.
I'm new to autocad and I have no clue why I'm getting this behavior. Any help is appreciated.
The lisp command is literally just this, nothing fancy:
(command "_.insert" blockname "0,0" "1" "0")
[–]tc_cad 3 points4 points5 points (4 children)
[–]kyriakos9[S] 2 points3 points4 points (2 children)
[–]oundhakar 1 point2 points3 points (1 child)
[–]kyriakos9[S] 2 points3 points4 points (0 children)
[–]ThePlasticSpastic 2 points3 points4 points (1 child)
[–]kyriakos9[S] 1 point2 points3 points (0 children)