new to writing lisp

Discussion in 'AutoCAD' started by snyper1982, Jun 7, 2004.

  1. snyper1982

    snyper1982 Guest

    where is a good place to learn to write a lisp routine?
    i have been trying to write a button macro, but the "\" backslash has been kicking my but. this is the macro as i have it so far:

    -plot n;;;\\hp01\Phaser 7300N

    im trying to make it so that i can change all my old drawing to refrence the new printer(the phaser 7300) instead of having to right click, page setup,etc.etc.

    thats a very time consuming process when dealing with hundreds of files. any help would be GREATLY apreciated.
     
    snyper1982, Jun 7, 2004
    #1
  2. snyper1982

    ECCAD Guest

    I suggest putting your plot command in a Lisp or script, then
    just run the lisp or script from your button. Problem is, the plotter name \\hp01\Phaser 7300N needs to be contained in
    double-quote characters i.e. "\\hp01\\Phaser 7300N" or such.
    Make a Lisp file: hp01_7300N.lsp
    (command "_-plot" "n" "" "" "" "\\hp01\\Phaser 7300N" ......)
    For button:
    [button words]^c^c(load "hp01_7300N")
    Place the .lsp in a support folder.

    Bob
     
    ECCAD, Jun 7, 2004
    #2
  3. snyper1982

    Rakesh Rao Guest

    This newsgroup is a wonderful place to ask questions and receive
    answers. Another small step for first time Lispers to hep get started is
    our TechCenter web-site [www.4d-technologies.com/techcenter] where we
    have compiled over 400+ Lisp functions that you can plug and paste into
    your Lisp applications. Mid you, they are not full-fledged working Lisp
    commands but instead are library functions covering areas like Polyline,
    Geometry, Layer, Drawing Management, AutoCAD Map, Blocks, Polyline,
    Strings, Text, ADO, ActiveX, Models, Import-Export, Dimension etc etc.

    You may want to take a look at the FREE downloads on our TechCenter
    web-site:

    URL:

    www.4d-technolgoies.com/techcenter

    Let me know if you have any questions.

    Regards
    Rakesh


    --
    --
    - Rakesh Rao [ rakesh.rao (at)4d-technologies.com ]
    - Four Dimension Technologies
    [www.4d-technologies.com]
    - Get GeoTools, Work smarter: www.4d-technologies.com/geotools
    - Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter
     
    Rakesh Rao, Jun 8, 2004
    #3
  4. snyper1982

    Rakesh Rao Guest

    There was an error in the URL in my post. The correct URL is:

    www.4d-technologies.com/techcenter



    --
    --
    - Rakesh Rao [ rakesh.rao (at)4d-technologies.com ]
    - Four Dimension Technologies
    [www.4d-technologies.com]
    - Get GeoTools, Work smarter: www.4d-technologies.com/geotools
    - Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter
     
    Rakesh Rao, Jun 8, 2004
    #4
  5. snyper1982

    snyper1982 Guest

    thanks for your suggestions, but i figured it out. I just ended up making a pc3 file and pointing my macro towards that, worked perfectly.
     
    snyper1982, Jun 8, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.