+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Full Member
    Using
    AutoCAD 2013
    Join Date
    Sep 2012
    Posts
    39

    Default Line to vla object

    Registered forum members do not see this ad.

    Hey all,

    I got a couple of 2D coordinates. How do I define a line with them
    and then convert it to a vla-object ? (using only LISP)

    Thanks

  2. #2
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,631

    Default

    Registered forum members do not see this ad.

    Example ....

    Code:
    (setq p1 '(0. 0. 0.))
    (setq p2 '(1. 0. 0.))
    
    (setq l (entmakex (list '(0 . "LINE")(cons 10 p1)(cons 11 p2))))
    
    (setq vl-obj (vlax-ename->vla-object l))
    - When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said

Similar Threads

  1. Copy an object along arched P-line
    By Beng in forum Map 3D
    Replies: 2
    Last Post: 28th Sep 2011, 12:30 pm
  2. insert object along line at set distances
    By CiCAD in forum AutoCAD General
    Replies: 7
    Last Post: 15th Jun 2011, 12:56 pm
  3. special ends on line object
    By JerryFiedler in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 27th Aug 2009, 10:15 am
  4. Extend line to next object
    By mixu in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 13
    Last Post: 2nd Jul 2008, 05:20 pm
  5. Selecting an object via command line
    By devouring in forum AutoLISP, Visual LISP & DCL
    Replies: 22
    Last Post: 6th Mar 2007, 02:41 pm

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