-INSERT "path to \LINK_VIEW_SCAL.dxf" 0,0 1 0
PSELECT L
BURST
-VPORTS L OFF ALL
MSPACE
ANNOALLVISIBLE 1
ZOOM E
PSPACE
here is the lsp counter part
but this .lsp doesn't work gets an error on burst and also gets the
Command: (if (not c:CUI_LISP_CUSTOM) (load (findfile "QuickAccess_Tools.lsp")))
Cannot invoke (command) from *error* without prior call to (*push-error-using-command*).
Converting (command) calls to (command-s) is recommended.
Command: (c:InsertLinkViewScale)
Cannot invoke (command) from *error* without prior call to (*push-error-using-command*).
Converting (command) calls to (command-s) is recommended
Solved! Go to Solution.
Solved by paullimapa. Go to Solution.
I should also add that I attached this script to a toolbar button
with the macro as
^C^C(if (not c:CUI_LISP_CUSTOM) (load (findfile "QuickAccess_Tools.lsp")))
(c:InsertLinkViewScale)
@QNashJSRL8 wrote:Here is the file
Thank you for that. Did you test your LISP first if I may ask? For example, it never finishes in INSERT function so it gets stuck
And... is there a reason you don't wish to simply place your LISP is a folder in AutoCAD's search path and just call the LISP from your button instead of all that ^C^C(if (not c:CUI_LISP_CUSTOM) (load (findfile......
I had added the location to the support file search path, but it wasn't calling the function so the macro logic with load file was the work around I found. I will try adding to trusted locations to see if that makes everything simpler.
I have tested the lisp and and it hasn't shown me the command list beside
I changed all commands to command-s and add "" after each command to see if that moves it to the next command.
-INSERT "..\LINK_VIEW_SCAL.dxf" 0,0 1 0
PSELECT L
BURST
-VPORTS L OFF ALL
MSPACE
ANNOALLVISIBLE 1
ZOOM E
PSPACE
Since Burst is actually an Express Tools Lisp routine, inside a lisp file you'll have to call a lisp command differently.
Try replacing this line:
(command-s "BURST" "")
With this line:
(c:burst)
Interesting that seemed to do the trick.
Is there a quick reference place you are able to hunt down stuff like this?
We just have an autolisp extension in vscode but c:burst didn't pop up in its IntelliSense.
you can just look it up on line like "autolisp burst" and you'll get links like this one:
Another Extrim can be called from lisp. But you need to use function ETRIM.
(if (not etrim)(load "extrim"))
(etrim obj pt1)
You can look inside extrim, but not all express tools are visually available as a lisp.
Can't find what you're looking for? Ask the community or share your knowledge.