leonucadomi Posted December 23, 2022 Share Posted December 23, 2022 hello: I want to interact with the command extrim but it doesn't obey from an lsp routine. why? help me please . my code (defun c:test ( /) (command "_extrim" ) ) Quote Link to comment Share on other sites More sharing options...
BIGAL Posted December 23, 2022 Share Posted December 23, 2022 Does extrim work when typed at command line ? If not then need to load express tools. To use in a lisp its hidden inside, the answer is (ETRIM obj pt) after loading extrim. Quote Link to comment Share on other sites More sharing options...
leonucadomi Posted December 23, 2022 Author Share Posted December 23, 2022 I'M TRYING TO USE IT FROM AN LSP , And how can I load it before using it in a routine? Quote Link to comment Share on other sites More sharing options...
Isaac26a Posted December 24, 2022 Share Posted December 24, 2022 Maybe if you use (load "extrim.lsp") (etrim obj pt) 1 Quote Link to comment Share on other sites More sharing options...
tombu Posted December 25, 2022 Share Posted December 25, 2022 acetauto.lsp autoloads and runs Express Tool commands when an Express Tool command is entered at the command line but not when used in lisp. Once "extrim.lsp" has been loaded the "etrim" function works as expected. The autoload (AutoLISP) function often used in acaddoc.lsp works similar loading and executing lisp when it's command is entered at the command line. When using Express Tool lisp functions or any lisp functions that are defined elsewhere in your code it's best to load them early as possible in your code to make sure the functions have been loaded completely before being called in your lisp. I've had to use a command call to DELAY (Command) to give sufficient time for loading larger lisp files before their function is called. 1 Quote Link to comment Share on other sites More sharing options...
leonucadomi Posted December 26, 2022 Author Share Posted December 26, 2022 thanks Quote Link to comment Share on other sites More sharing options...
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.