+ Reply to Thread
Results 1 to 4 of 4

Thread: Need LISP help

  1. #1
    Full Member
    Using
    AutoCAD 2012
    Join Date
    Mar 2012
    Posts
    25

    Default Need LISP help

    Registered forum members do not see this ad.

    hi guys have no real experance with lisps but very eger to lern.

    I need to know if there is any thing out there that could do the following??

    in the drawing - save as - (same filename)-pl.dwg (same location)
    then i need to X-Ref the previous drawing in @ 0,0,0.
    and rename the X-Ref as ARCH

    if there was something out there that even done the first part that would be amazing and would greatly apprecate it.

    Thanks..

  2. #2
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,003

    Default

    You can achive that by AutoLISP; this example should get you started:
    Code:
    (vl-load-com)
    (setq drawingOld (getvar "DWGNAME")
          drawingNew (strcat (getvar "DWGPREFIX")
                             (vl-filename-base drawingOld)
                             "-pl"
                             (vl-filename-extension drawingOld)))
    (command "_SAVEAS" "" drawingNew)
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  3. #3
    Full Member
    Using
    AutoCAD 2012
    Join Date
    Mar 2012
    Posts
    25

    Default

    thanks very much mircea great help

  4. #4
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,003

    Default

    Registered forum members do not see this ad.

    You’re welcome! Maybe it was better to continue the discussion here instead of starting a new thread since is the same mater.
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

Similar Threads

  1. Lisp to show in what routine you are in, in a big lisp program.
    By ctdlc888 in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 21st Mar 2012, 02:31 am
  2. chk my new lisp & suggestion how to improve this lisp (intersecation cleane)
    By autolisp in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 1st Sep 2010, 03:55 am
  3. Replies: 3
    Last Post: 10th Aug 2010, 04:39 am
  4. a lisp to apply 3 different lisp to 3 obj types filtered from one selection
    By gilsoto13 in forum AutoLISP, Visual LISP & DCL
    Replies: 28
    Last Post: 5th Nov 2009, 05:28 am
  5. problem, trying to running a list of lisp from within a lisp
    By twind2000 in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 20th Aug 2007, 04:27 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