AboutScott Cook Expertise I`ve been using AutoCAD since 1987 and programming AutoLISP nearly as long. I can answer questions about programming AutoCAD (except ARX) and production enhancement techniques. I cannot answer questions about AutoCAD crashes or DWG corruption. AutoCAD PROGRAMMING (menus, lisp) related questions only!
Experience Since 1987. Author of Plot2000 software for for AutoCAD, http://www.plot2000.com.
PROGRAMMING QUESTIONS ONLY PLEASE. Questions that are NOT related to programming or AutoCAD customization (menus and lisp only please) are outside the scope of my volunteer services and will NOT BE ANSWERED.
Question I am using AutoCad 2002. I am creating a lisp routine that will create a tendon for a pt slab. I am not sure if you know what this is, but I have got it to work to an extent. It contains a variety IF functions using line commands, insert commands, and equations. I have several questions about the kinks in it but the one I am most curious about is: Why would the zoom function interfere with the command?
If I am zoomed in close enough all the functions will work. But if I am zoomed out to far, not all the commands will work correctly. Numbers will be out of place, arrows will be in the wrong place, etc, or nothing will show up on the screen at all. But the command prompt will read correctly.
Another question is if I pick to points needed for the function to work nothing will show up on the screen but the command prompt will read correctly with no errors. But if I make two different point in a different location using the same distance and angles it will work. Except for the arrow. It will still be in the wrong place unless I am zoomed correctly.
I know you don't have the function in front of you but I am curious as to what advice or experience you have had with these types of problems. What can I check or do to get rid of them.
Respectfully,
Jeremy Bailey
jbailey@es2eng.com
6380 S. Valley View Blvd. #406
Las Vegas, NV 89118
Phone: (702) 616-3107
Fax: (702) 616-3725
Answer sounds like you have a running osnap turned on and you are snapping to points when you are creating entities.
try turning off your osnap and run the routine again.
if that fixes the problem you can save the value of osmode at the beginning of your routine and turn osnap off, then restore the value at the end of your routine.