AutoCAD/scripts

Advertisement


Question
I've programmed in AutoCAD 2002 before, but just recently
started back in AutoCAD 2006.
the problem I'm having is canceling out of a command inside the script.
^C^C used to work, but I can't make it work now.
Basically, what I'm doing is updating a block with a new definition without having to retype the attributes.
Once I reset the expert mode to 2, then insert the block
using full path = name, I want to cancel the insertion of the new block.
I can't find anything in Scriptpro of AutoCAD help about this call.

Thanks in advance for an answer

Answer
Sylvia:
Download the following lisp routine by pasting the following URL in your browser:
http://my.sterling.net/~bdeshawn/FXBLOCK.LSP

I wrote this routine to do exactly what you're trying to do.  And it's FREE!  Just make sure the block is in the support file search path.  When given the option, don't open.  Save it instead.

Keep in touch
Bill DeShawn
http://my.sterling.net/~bdeshawn

AutoCAD

All Answers


Answers by Expert:


Ask Experts

Volunteer


Bill DeShawn

Expertise

I can address all 2-D questions and some 3-D questions. I do programming in AutoLISP if it doesn`t involve solid modeling. I can also address menu customization issues and can help you find answers to questions I can`t answer by taking your question directly to Autodesk via their newsgroups.

Experience

I used to do electronic and mechanical design for a flat panel monitor manufacturer, and now I do architectural drafting for an architect. I did and do AutoLISP and menu customization and take pride in making my lisp routines to do the work exactly the way the client likes them done.

Publications
I had a routine published in CADENCE magazine (no longer in publication and taken over by CADALYST). Some of my routines are published on my website at http://my.sterling.net/~bdeshawn

©2012 About.com, a part of The New York Times Company. All rights reserved.