• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    *Puckett, Michael

    Re:

    10-20-1999 07:59 PM in reply to: *Nagel, Eric
    Good call Vladimir.

    ________________________________

    puckettm@cadvision.com
    > Not < a Member of the AutoDESK
    Discussion Forum Moderator Program
    Imagination makes all things possible.
    ________________________________

    Vladimir Nesterovsky wrote in message
    news:380e51da.45281500@adesknews.autodesk.com...
    Eric -- if your file is sometimes working, and
    sometimes doesn't, if it works OK right after
    you appload it, ---- it's obvious that you have
    some other file defining another MAIN function,
    which *does* have an mspace command in it. :smileyhappy:

    You can try and put all your dependent functions
    inside the main one, like

    (defun c:LS2 (/ main layer)

    (defun layer() ..... )
    (defun main () ..... )

    (setq dcl_id (load_dialog "ls2.dcl"))
    (if (new_dialog "ls2" dcl_id)
    (progn
    (action_tile "accept" "(MAIN) (done_dialog)")
    (action_tile "cancel" "(done_dialog)")
    (start_dialog)
    (unload_dialog dcl_id)
    (LAYER)
    )
    )
    (princ)
    )

    so that these functions are always defined properly
    when your command is called.

    See if this helps. :smileyhappy:

    On Tue, 19 Oct 1999 14:26:34 -0700, Eric Nagel wrote:

    >I forgot to mention that that I am loading this routine thru my
    >'acadr14.lsp' file. When I appload the file, it works just fine...I'm
    >stumped...
    >
    >Eric Nagel wrote:
    >
    >> Greetings All !
    >> I am having an odd problem that I cannot seem to figure out. I am
    >> hoping someone will be able to help me out with this...Notice that I do
    >> not have an "mspace" command anywhere in my code. Any pointers would be
    >> thanked...
    >> Thanks,
    >> Eric
    >>
    >> Here is the error message that I am getting:
    >>
    >> Command: ls2 error: incorrect request for command list data
    >> (COMMAND ".mspace")
    >> (MAIN)

    ---
    Vlad http://vnestr.tripod.com/
    Please use plain text.
    *Herrin, Mark

    Re: LISP QUESTION

    02-18-2003 01:57 AM in reply to: *Nagel, Eric
    Ok on all of my drawings for this company we use drawing footers to
    determine where the drawing is located, My question is, Is it possible to
    write a lisp so that when you open a drawing or save a drawing in a new
    place that it updates the footer text, If it could be done could someone
    help get me pointed in the right direction. Thanks!
    Please use plain text.
    *Turvill, Paul

    Re:

    02-18-2003 01:59 AM in reply to: *Nagel, Eric
    Do you have Express Tools? Sounds like a job for RText.
    ___

    "Mark Herrin" wrote in message
    news:87BCE4AF8F84CB233B1F23E5FDAC51C6@in.WebX.maYIadrTaRb...
    > Ok on all of my drawings for this company we use drawing footers to
    > determine where the drawing is located, My question is, Is it possible to
    > write a lisp so that when you open a drawing or save a drawing in a new
    > place that it updates the footer text, If it could be done could someone
    > help get me pointed in the right direction. Thanks!
    >
    >
    Please use plain text.