block insertion base point offset

block insertion base point offset

saitoib
Advocate Advocate
266 Views
2 Replies
Message 1 of 3

block insertion base point offset

saitoib
Advocate
Advocate

Hi all.

After creating a 3D object (e.g., a triangular pyramid, radius 100, height 200) and executing the following Lisp, the insertion base point of the block is shifted slightly.
What is the cause of this?
Is there a solution?

Thank you .

(defun c:3View ( / )
  (command "flatshot" "b" "0,0" "300,0" "1" "1" "0")
  
  (command "-vpoint" "1,0,0")
  (command "flatshot" "r" "90" "b" "0,0" "300,0" "1" "1")
  
  (command "-vpoint" "-1,0,0")
  (command "flatshot" "r" "-90" "b" "0,0" "300,0" "1" "1")

  (command "-vpoint" "0,1,0")
  (command "flatshot" "b" "0,0" "300,0" "1" "1" "0")

  (command "-vpoint" "0,-1,0")
  (command "flatshot" "r" "180" "b" "0,0" "300,0" "1" "1" "0")

  (command "-vpoint" "0,0,0")
)
Saitoib
0 Likes
267 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant

Turn off osnaps prior to calling the lisp.

0 Likes
Message 3 of 3

saitoib
Advocate
Advocate

@ВeekeeCZ 

I tried inserting (setvar "osmode" 0) but that did not change the result.
 
I wonder if it has something to do with the position of the mouse cursor at the time of executing Lisp.
Saitoib
0 Likes