Insert Block command is asking user for Basepoint/Scale/X/Y/Z/Rotate when supplied
*^C^C(command "layer" "m" "CSPPSYM" "ltype" "continuous" "" "color" "10" "" "")(command "insert" "216" (getpoint) msf "" "")
I am currently using the above mentioned lisp command for when a user tries to insert a block from a custom menu. On my computer it is working fine, what it does is ask for an insertion point and then it inserts the block without asking for anything else, however on a users computer it doesn't ask for an insertion point and when they click a point it does nothing. However if they click on the menu item, then hit Esc the symbol shows up on the drawing and they are asked to specify scale/rotation and everything else. I'm wondering if there is a certain variable that is set differently that causes this lisp routine to function the way it is? The current user having problems is using Map 2012 and I'm using Map 2011, but I remember about a year ago it was behaving the exact same way for me as it is for them when I was on Map 2011. Sadly I can't remember what I did to fix the problem :(.
Thanks for any help.
Re: Insert Block command is asking user for Basepoint/Scale/X/Y/Z/Rotate when supplied
What is msf? It's probably some global variable generated from some other code, that's why it works on your PC but not others. You need to have that code loaded on the other PC's as well.
Re: Insert Block command is asking user for Basepoint/Scale/X/Y/Z/Rotate when supplied
try this one
Code:
*^C^C(command "layer" "m" "CSPPSYM" "ltype" "continuous" "" "color" "10" "" "")(command "insert" "216" "S" 1 "r" 0 (getpoint) msf)
Recommendation is to also create a lisp file and not just as a button function.
(Unless you are limited by acad lite or something else)
Re: Insert Block command is asking user for Basepoint/Scale/X/Y/Z/Rotate when supplied
Quote:
Originally Posted by
ReachAndre
(Unless you are limited by acad lite or something else)
But then the lisp in the button's macro will also not work. In LT you're stuck with only using macro language. For this reason I'd say to anyone opting for LT, why not rather go with a clone like BricsCAD? It's cheaper than LT and has much more capabilities!
Re: Insert Block command is asking user for Basepoint/Scale/X/Y/Z/Rotate when supplied
Thanks ReachAndre that command works, still don't know why the original stopped working on other computers but still works on mine.
Re: Insert Block command is asking user for Basepoint/Scale/X/Y/Z/Rotate when supplied
at a command prompt, type in !msf on your machine, and also the same thing on the other machine