Towel,
It can be done very easily. Just hang on while I go check what I have.![]()
Registered forum members do not see this ad.
Hello,
everytime when im inserting a block it ask's for:
Specify insertion point or [Basepoint/Scale/X/Y/Z/Rotate]:
Enter X scale factor, specify opposite corner, or [Corner/XYZ] <1>:
Enter Y scale factor <use X scale factor>:
Specify rotation angle <0>:
Insertion point is usefull offcourse, but i want autocad to place the block immediatly without asking for scales en rotation angles. Is there any lisp who disable those prompts? And is there an tutorial how to apply a lisp?
Thank you!
Towel
Towel,
It can be done very easily. Just hang on while I go check what I have.![]()
Why not just answer the questions re: scale and rotation in the Lisp routine by supplying the defaults?
"I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police
Eat brains...gain more knowledge!
Check here...
http://www.cadtutor.net/forum/showthread.php?t=1390
Okay, here's a very basic lisp. But make sure the folder your blocks are in, is in the acad search path.
Code:(defun c:bli () (setq bname (getstring T "Block name? ")) (setq pt (getpoint "insertion point? ")) (command "-insert" bname pt 1.0 1.0 "") )
Did, but still i have to enter x-factor, y-factor and rotation:
Command: _appload bli.lsp successfully loaded.
Command:
Command:
Command:
Command: -insert Enter block name or [?] <CP>: Str15 Specify insertion point or
[Basepoint/Scale/X/Y/Z/Rotate]:
Enter X scale factor, specify opposite corner, or [Corner/XYZ] <1>:
Enter Y scale factor <use X scale factor>:
Specify rotation angle <0>:
I just tested it. At the command line, type BLI, then fire away.
Registered forum members do not see this ad.
Bookmarks