+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Forum Newbie
    Using
    AutoCAD 2014
    Join Date
    Apr 2014
    Posts
    7

    Default How to extract integers from Getpoint?

    Registered forum members do not see this ad.

    Say this is my code:

    Code:
    (defun c:test()
      (setq list(getpoint "\nChoose point here")
    )
    When you click on your autocad drawing i know that it stores the coordinates in a x,y,z format in a list.. How can i extract those numbers?

  2. #2
    Luminous Being Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draughtsman
    Discipline
    Mechanical
    Details
    HVAC, Drainage, Water Supply, Fire Fighting and a little about Electricity.
    Using
    AutoCAD 2015
    Join Date
    Oct 2009
    Location
    Great Syria , Living in Abu Dhabi
    Posts
    6,053

    Default

    Registered forum members do not see this ad.

    Firstly be careful to use a function as a variable which would popup a warning message then a conflict may take a place .

    Code:
    (setq p (getpoint "\n Specify point :"))
    (setq x (car p)
            y (cadr p)
            z (caddr p)
    )

Similar Threads

  1. store getint() integers to a list
    By samifox in forum AutoLISP, Visual LISP & DCL
    Replies: 17
    Last Post: 10th May 2013, 02:36 pm
  2. Help!! Decimal place values of Integers in a Lisp, importing values from excel
    By loveboatcaptain in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 8th Feb 2012, 11:33 pm
  3. Finding Integers
    By b_clive in forum AutoCAD General
    Replies: 1
    Last Post: 9th Dec 2010, 10:46 am
  4. Convert integers numbers into real numbers, introducing decimal separator.
    By teknomatika in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 3rd Sep 2010, 04:07 pm
  5. GetPoint
    By jandres in forum AutoLISP, Visual LISP & DCL
    Replies: 6
    Last Post: 15th Oct 2005, 02:38 pm

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts