Visual LISP, AutoLISP and General Customization

Reply
*Puckett, Michael
Message 11 of 13 (45 Views)

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/
*Herrin, Mark
Message 12 of 13 (45 Views)

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!
*Turvill, Paul
Message 13 of 13 (45 Views)

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!
>
>

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community