maahee Posted yesterday at 10:30 AM Posted yesterday at 10:30 AM (edited) (defun c:mahi (/ pt p1 p2) (setq p1 (getpoint)) ; point from the file (while (setq p2 (getpoint)) ; point from the file ;;;; code point extration from txt or excel (command "line" p1 p2 "") (setq p1 p2) ) (princ) ) Extract a point from the txt file, then draw a line in AutoCAD point.txt Edited yesterday at 10:30 AM by maahee Quote
GLAVCVS Posted 17 hours ago Posted 17 hours ago (edited) Your txt file does not have a uniform format You should fix that first. Edited 17 hours ago by GLAVCVS Quote
maahee Posted 1 hour ago Author Posted 1 hour ago (edited) x y z 21.0937p1 200.4997p1 0p1 22.0937p2 201.4997p2 0p2 23.0937p3 203.4997p3 0p3 23.0807p4 203.4797p4 0p4 The txt file should always be kept in the above uniform format and should have the prefix or suffix from the point point.txt Edited 1 hour ago by maahee Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.