cancel insert doesn't wor
I want to overwrite a block and not insert it. I use this code:I have one lisp running just fine but now I want to use it for another lisp and it hangs on pick a point :@
And I have no idea why it does that.... Edit:
Technically, you are inserting the block. Your result is that the block definition within your drawing is 'overwritten' as a result of the "=" in the block name declaration.
Experiment with the pause function, to manually specify the insertion point:
(command "._-insert" "TEMPLATE=TEMPLATE" pause)
If you simply want all blocks to be 'overwritten', then this may be what you want:
(command "._-insert" "TEMPLATE=TEMPLATE" nil)
Hope this helps! *sigh the "y" screwed things up it wasn't needed, I thought you needed to confirm overwriting?(In another script of mine the "y" works just fine)
@renderman You didn't get me exact right but helped any waytnx pffff the real problem was I was using script-pro and because I cancel the insert cmd script-pro thought hmm something got canceled lets just stop working...
I now used doc.lsp, could also insert the block and then delete it. I usually insert the block and then ERASE L I knew there was such a cmd but didn't know how it was called. Gonna try it out tnx! (command "._-insert" "NAME=" nil)The equal will tell it to redefine an existing definition and cancel before block is actually inserted. isn't it "NAME=" ? Oops, you're correct. Not enough sleep. Script-pro stops when you cancel a command. So I can't use nil.
页:
[1]
2