Jump to content

To select all blocks which have same name inside a selection windoe


Recommended Posts

Posted

How do you know the association no.for the text is 40

how can we find out other association nos like text rotation, Block rotations ect..:?

  • Replies 25
  • Created
  • Last Reply

Top Posters In This Topic

  • wimal

    9

  • Tharwat

    7

  • alanjt

    4

  • Lee Mac

    4

Posted

Text and Block rotation angles must be supported in radians .

 

'(50 . 0.0)

Posted
This ...?

 

(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 with decimal (mm) units.

But when I use with imperial ( feet & inches) the selected objects are moving

far away

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...