Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Entering data into dialog

2 REPLIES 2
Reply
Message 1 of 3
dbrblg
173 Views, 2 Replies

Entering data into dialog

Hi,
There is a standard function used by AutoCAD electrical which I want to call myself but after calling that function a dialog box appears prompting for a file which in my case will always be the same file so really what I want to do is automatically enter the file name so that the whole process is automated.

Is this something that LISP is able to do? Since it is a standard piece of code, I don't want to have to hack it around and hardwire my file into it as I am sure you understand.

Am I going about this the right way?

Thanks
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: dbrblg

maybe you could try
(command "-myfunction" "myfile"....)

dbrblg wrote:
> Hi,
> There is a standard function used by AutoCAD electrical which I want to call myself but after calling that function a dialog box appears prompting for a file which in my case will always be the same file so really what I want to do is automatically enter the file name so that the whole process is automated.
>
> Is this something that LISP is able to do? Since it is a standard piece of code, I don't want to have to hack it around and hardwire my file into it as I am sure you understand.
>
> Am I going about this the right way?
>
> Thanks
Message 3 of 3
dbrblg
in reply to: dbrblg

Unfortunately this didn't seem to work. This is what I have so far...

{code}(if(not wd_load)
(if(setq x(findfile "wd_load.lsp"))
(load x)))
(wd_load)
(load (strcat GBL_wd_sup "swap_wdm"))
(c:swap_wdm)
(princ){code}

Thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost