Jump to content

Recommended Posts

Posted

(defun c:TesT (/ sc ss i sn)   ;;; Tharwat 13. Dec. 2011 ;;; (if (and (setq sc (getdist "\n Specify Scale factor :"))            (setq ss (ssget "_:L" '((0 . "INSERT") (2 . "dot"))))       )     (progn (repeat (setq i (sslength ss))              (setq sn (ssname ss (setq i (1- i))))              (command "_.scale" sn "" (cdr (assoc 10 (entget sn))) sc)            )            (sssetfirst nil ss)     )     (princ)   )   (princ)

This code is working properly in good drawing but in the bad drawing

the dots are moving far away from existing position.

Please Help to find out the error. :oops:

bad.dwg

GOOD.dwg

Posted

What would happen if you set the UCS in the bad drawing to World?

 

And your Insert units in the bad drawing are millimetres? Might make a difference :?

Posted
What would happen if you set the UCS in the bad drawing to World?

 

And your Insert units in the bad drawing are millimetres? Might make a difference :?

 

Thanks Eldon. After setting UCS to World , it working properly.

Thanks again.:D

Posted

No need to change UCS

this

(cdr (assoc 10 (entget sn)))

to this

 [/color]
([color=blue]trans[/color] (cdr (assoc 10 (entget sn))) [color=blue]0 1[/color])

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...