PDA

View Full Version : Block insertion


bandent
2005-01-25, 10:43 AM
Task: To create a subroutine within a larger lisp program that will allow the user to see the block when asked for insertion point similar to the way AutoCAD does it.

Currently the program asks the user for an insertion point using getpoint, then it processes a bunch of information for the attributes and then inserts the block at the specified point using (command "insert" ....

Using getpoint does the job, but if the user is trying to insert the block in a busy area, they must insert the block and then reposition it (2 steps when 1 should do).

Is there a method that allows the user to see, at scale, where the block is being placed when asked for the insertion point, but does not insert it at that time?

bandent

kennet.sjoberg
2005-01-25, 01:38 PM
Yes.. when the command prompt
"Specify insertion point or [Scale/X/Y/Z/Rotate/PScale/PX/PY/PZ/PRotate]:" appear
switch to scale and rotate with S and R and do the "insertion point" as the last task.

You can do it in lisp as well.

: ) Happy Computing !

kennet