Message 1 of 15
Draw poiyline using a list containing X, Y coordinate

Not applicable
11-19-2017
04:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, all. I am a beginner of AutoCAD lisp.
I have two simple questions
1. I generate a list which containing X Y coordinate such as:
Coor = (100 10 101 12 103 32)
which means X1 = 100, Y1 = 10, X2 = 101, Y2 = 12, X3 = 103, Y3 = 32.
Here, how can I make lisp code to work as like:
(COMMAND "PLINE" "100,10" "101,12" "103,32" "")
2. Through the web search, I understand there are several methods to draw pline from the list as like:
Coor_1 = ((100 10) (101 12) (103 32))
Here, how can I change the list format from Coor (original one in above #1) to Coor_1?
Thank you. Cheers,