Jump to content

Recommended Posts

Posted (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 by maahee
Posted (edited)

Your txt file does not have a uniform format

You should fix that first.

Edited by GLAVCVS
Posted (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 by maahee

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...