hosyn Posted June 6, 2013 Posted June 6, 2013 How can appload a lisp from macro i do the following but it open dialog , what's wrong ?? ^C^C^_appload ;Ffjdshj.LSP; Quote
ReMark Posted June 6, 2013 Posted June 6, 2013 See post #3 of this thread... http://www.cadtutor.net/forum/showthread.php?19522-Routine-to-APPLOAD-lisp-file.. Quote
MSasu Posted June 6, 2013 Posted June 6, 2013 Not sure if APPLOAD works in command line mode; try this instead: ^C^C^(load "Ffjdshj.LSP") Quote
hmsilva Posted June 6, 2013 Posted June 6, 2013 hosyn, if your lisp file is not in a "Support File Search Path", you must provide the full path, and for instance, your command name would be "test", you could test if was loaded, if not, load it and run the code... ^C^C(if (not c:test) (load "C:/mylisp/Ffjdshj"));test Henrique Quote
hosyn Posted June 6, 2013 Author Posted June 6, 2013 I checked them and unfortunately don't act well:( How can appload a lisp from macro i do the following but it open dialog , what's wrong ?? ^C^C^_appload ;c:\my doc\Ffjdshj.LSP; Quote
hmsilva Posted June 6, 2013 Posted June 6, 2013 Just for load Ffjdshj.lsp ^C^C(load "C:/my doc/Ffjdshj") or ^C^C(load "C:\\my doc\\Ffjdshj") Henrique Quote
hosyn Posted June 6, 2013 Author Posted June 6, 2013 What's the macro command for loading lisp file from customize bottom toolbar that when i click that bottom load lisp file. Quote
ReMark Posted June 6, 2013 Posted June 6, 2013 You basically got the answer in your other thread. See post #9 of this thread for a recap. http://www.cadtutor.net/forum/showthread.php?48430-Open-file-and-run-lisp-macro Quote
SLW210 Posted June 6, 2013 Posted June 6, 2013 It is getting tiring to continually have to move and merge your threads and remind you to use Code Tags. Please review the forum posting and code posting guidelines. Quote
hmsilva Posted June 6, 2013 Posted June 6, 2013 I checked them but not work:( What did you check? if yhe path you posted is correct and the filename too, ^C^C(load "C:/my doc/Ffjdshj") must work! Henrique Quote
dbroada Posted June 6, 2013 Posted June 6, 2013 I checked them but not work:( what do you get if you try (findfile "c:/my doc/Ffjdshj.lsp") Quote
hosyn Posted June 6, 2013 Author Posted June 6, 2013 Mr Dbroada I try it and result: "c:/my doc/Ffjdshj.lsp" Quote
hosyn Posted June 6, 2013 Author Posted June 6, 2013 When i locate in custom toolbar and run it i have this result in prompt: (load "C: ??????????????????? Quote
hmsilva Posted June 6, 2013 Posted June 6, 2013 (edited) hosyn, copy and paste here, the command string you have in your custom toolbar, dont type. just copy/paste Henrique Edited June 6, 2013 by hmsilva typo... Quote
MSasu Posted June 6, 2013 Posted June 6, 2013 Hosyn, I'm afraid you didn't stated the full path into your first post; please adjust the macro like: ^C^C(load "C:\\my doc\\Ffjdshj.lsp" "Unable to find Ffjdshj.lsp") And don't forget that the macro should contain a space at end. Quote
hosyn Posted June 6, 2013 Author Posted June 6, 2013 Dear Msasu I copy and paste the above code and this is the result of yor code: Command: Command: Command: (load "C: ("_> ("_> my doc ("_> ("_> Ffjdshj.lsp" "Unable to find Ffjdshj.lsp") "Unable to find Ffjdshj.lsp" After the run macro apear (load"c: and after some enter have this result.:?o:)o:)o:)o:) Quote
rkent Posted June 6, 2013 Posted June 6, 2013 Copy and paste just this (load "C:\\my doc\\Ffjdshj.lsp" "Unable to find Ffjdshj.lsp") If it works then add the ^C^C in your macro in a tool. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.