Midpoint Object Snap

Discussion in 'AutoCAD' started by Laurie Comerford, Nov 7, 2004.

  1. Hi Thomas,

    Simply loading a lisp program does not put it in the menu system.

    You have to do this as an independent process.

    A typical line in a menu to load and run a lisp program could be like this:

    KeyToToolTip[VisibleText in Menu]^C^C^C(if (= Myfunctionname Nil)(load
    "MyFileSpec"));(MyFunctionname);

    You can read the help files on menus for more details.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au

    OF MY SAMPLE. But the routine does not function In my drawing envierment. I
    can find it with Explor as a VLX. file and a PRV. file, I can load it with
    APPLOAD but it's not showing the menu. How can I place it in my pop0 file
    for Osnap command's?
     
    Laurie Comerford, Nov 7, 2004
    #1
  2. Laurie Comerford

    THOMAS Guest

    I've wrote the mid3d Lisp saved it and it's location is in my VisualLISP OF MY SAMPLE. But the routine does not function In my drawing envierment. I can find it with Explor as a VLX. file and a PRV. file, I can load it with APPLOAD but it's not showing the menu. How can I place it in my pop0 file for Osnap command's?
    THNAK YOU
    FROM A STUDENT WITH
    ITT TECHNICAL INSTITUTE.
     
    THOMAS, Nov 7, 2004
    #2
  3. Laurie Comerford

    Walt Engle Guest

    What is your lsp routine? Edit your acad.mnu and put it with Pop0.
     
    Walt Engle, Nov 7, 2004
    #3
  4. Laurie Comerford

    Tom Smith Guest

    (= Myfunctionname Nil)

    I prefer (not Myfunctionname) to test for nil/nonexistence. You could also
    do this as

    (or MyFunctionName (load "MyFileSpec"));(MyFunctionName);
     
    Tom Smith, Nov 8, 2004
    #4
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.