list automation

list automation

Anonymous
Not applicable
1,462 Views
27 Replies
Message 1 of 28

list automation

Anonymous
Not applicable

Dear Sirs,

 

I'm now starting to learn how to code lisps.

 

I need to create a process to read a polyline or 3dpolyline nodes coordinates and export them to a .xls file. I can do it using LIST command, but as i have a large number of examples i would like to optimize my work with a lisp.

 

Second Step:

 

Write the coordinates in this format:

 

poly[0][0] :=VEC(-10.3545,-1.9963,0);
poly[0][1] :=VEC(-10.3488,-1.8242,0);
poly[0][2] :=VEC(-10.3258,-1.6521,0);

.

.

.

 

 

 

 

 

 

0 Likes
Accepted solutions (2)
1,463 Views
27 Replies
  • Lisp
Replies (27)
Message 21 of 28

Anonymous
Not applicable

Hi again,

 

I noticed that the code uses the UCS World coordinates, can i turn it into UCS local?

 

 

 

0 Likes
Message 22 of 28

Anonymous
Not applicable
Solved
0 Likes
Message 23 of 28

pbejse
Mentor
Mentor

@Anonymous wrote:
Solved

 

Well good for you then @Anonymous . 

 

Is that for both additional option? 

- Outer line is always counter clockwise, inner line is always clockwise.

- can i turn it into UCS local?

 

Would you mind post and share the added feature so we would understand what you were asking in the last two posts?

 

0 Likes
Message 24 of 28

Anonymous
Not applicable

None of them are solved. But the second post is not relevant at the moment.

 

The first post is still alive for you experts. Appreciate your help

 

 

 

 

0 Likes
Message 25 of 28

pbejse
Mentor
Mentor

@Anonymous wrote:

The first post is still alive ...

So what;s the deal with this then

- Outer line is always counter clockwise, inner line is always clockwise.

 

Will that be the user is prompted to select two at a time? The outer and the inner line?[0][#] is the outer and [1] [#] as the innner coordinates?

 

Or this has nothing to do with the previous request?

 

0 Likes
Message 26 of 28

Anonymous
Not applicable

Exactly, the perfect lisp should get/ask 2 types of coordinates in 2 different objects:


Counter clockwise:
poly[0][0] :=VEC(x,y,x);
poly[0][1] :=VEC(-10.3488,-1.8242,0);
.
.
Clockwise:
poly[1][0] :=VEC(-x,y,z);
poly[1][1] :=VEC(-10.3488,-1.8242,0);
.
.

0 Likes
Message 27 of 28

pbejse
Mentor
Mentor

@Anonymous wrote:

Exactly, the perfect lisp should get/ask 2 types of coordinates in 2 different objects:


 

Let's say there are 6 pairs of outer/inner polylines, on the drawing? are you wanting 1 file per pair? and the filename would increment by 1 "DrawingName_1.csv"  "DrawingName_2.csv" ?

 

If thats the case, we add a loop for the user to select one pair after another. The number will always be 

[0][0] for Counter clockwise and [1][0] for clockwise: ?

 

Post a sample drawing.

 

 

 

0 Likes
Message 28 of 28

Anonymous
Not applicable

Let's get it simpler. The outer rectangle is solved with the lisp you gave me on the first posts, so let's forget it. 

Now i need another lisp (similar to the last one) that write the nodes in clockwise. --> format [1][#] 

 

 

 

fft_0-1628666020248.png

 

Thank you again

 

0 Likes