Pasting LISP commands inconsistent behavior

Pasting LISP commands inconsistent behavior

jo2ny
Advocate Advocate
492 Views
2 Replies
Message 1 of 3

Pasting LISP commands inconsistent behavior

jo2ny
Advocate
Advocate

I attached a video screen capture describing the issue below. 

 

I have two files:

File 1 containing:

(command "line" "0.000000,0.000000" "0.812800,0.067733" "")
(command "line" "0.000000,0.000000" "1.117600,-0.571500" "")

These lines represent an initial geometry.

 

File 2 containing:

(command "line" "0.050625,-0.050774" "0.812800,0.012740" "")
(command "line" "0.050625,-0.050774" "1.117600,-0.526030" "")

These lines represent the final geometry (obtained after a conversion algorithm).

The objective is to have the initial geometry and the final geometry in the same acad file drawn wish 2 distinct colors.

 

To do this I open a new acad file, copy file 1 contents and paste them in the command line.

I get 2 lines starting in (0,0) .

I change the layer color to , say, green.

I copy file 2 contents and paste them in the command line, and I get another two (green) lines, but they are not drawn in the correct coordinates.

They both start at (0,0). One ends in it's correct point (1.117600,-0.526030). The other one ends in a point as the previous copy-paste command which is wrong and unexpected. Also the starting point of (0,0) for the green lines is unexpected.

 

Why is this happening? Am I doing something wrong?

 

P.S.

I checked in the command line and the second paste had the coordinates correct. ( => not a clipboard issue)

As a workaround for this I found out that if I can paste the file2 contents in a new file and then base point copy them in the original file.

0 Likes
Accepted solutions (1)
493 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant
Accepted solution

You need to turn off osnaps.

 

Prob best way is setting osnapcoord 1.

Message 3 of 3

jo2ny
Advocate
Advocate

Wow, awesome, works like a charm!

This made my day, many thanks!

0 Likes