Print Page | Close Window

autolisp bad coordinate

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DXF formats, Design Review, AutoCAD web, Drive, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=4779
Printed Date: 12.Jun.2026 at 22:31


Topic: autolisp bad coordinate
Posted By: ZICOOO82
Subject: autolisp bad coordinate
Date Posted: 14.Nov.2010 at 10:05
Kindly to help me:
the following codes always gives me bad coordinate after inserting it into lisp file and activate it:
 
(command "line" (list 0 2.5 0) (list 0 7.5 0) "")
(setq en3(entlast))
(command "circle" (list 0 0 0) 2.5)
(setq en1(entlast))
(command "-ATTDEF" "" "point" "" "P" "j" "mc" (list 0 0 0) "2.5" "")
(setq en2(entlast))
(command "-block" "po" (list 0 7.5 0) en1 en2 en3 "")
 
and if i activate every line separately i get the correct coordinate,,,
Thanks



Print Page | Close Window