Over 1.106.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and sys.variables and env.variables,.
Discussion forum
?CAD discussions, advices, exchange of experience
CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.
Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
|
Post Reply
|
| Author | |
jpkibble
Newbie
Joined: 19.Nov.2010 Location: United Kingdom Using: AutoCAD 2006 Status: Offline Points: 6 |
Topic: Lisp, Loops and Lines :-(Posted: 26.Nov.2010 at 15:42 |
|
Hi
I'm trying to draw a simple polyline from a csv file of x and y coordinates. I can open and read the csv file fine but can't get a loop to work within a line command drawing the line from point to point in a while loop. I've tried lots of things without success, the code below best explains what I'm trying to acheive. (defun c:csv () (setq selfile (getfiled "Select File" "" "CSV" 0)) (setq openfile (open selfile "r")) (command "pline" (while (setq line (read-line openfile))) ) ) Any ideas? ![]() |
|
![]() |
|
Vladimir Michl
Moderator Group
Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2144 |
Posted: 26.Nov.2010 at 16:30 |
|
You are almost there...
The loop should look like:
|
|
|
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner |
|
![]() |
|
jpkibble
Newbie
Joined: 19.Nov.2010 Location: United Kingdom Using: AutoCAD 2006 Status: Offline Points: 6 |
Posted: 27.Nov.2010 at 08:54 |
|
That's great, another little problem solved making my life 100% easier!
Huge, thanks! ![]() |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,219 seconds.
![CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](/common/arkance_186.png)


Lisp, Loops and Lines :-(
Topic Options




