Jump to content

Recommended Posts

Posted

Hi All,

 

Good day, i just incounter on this forum about attribute rotation, the lips is great :lol:, i'm just thinking to make it specific angle rotation or by matching a attribute rotation by selecting the soure attribute and then select all attribute text to be match the rotation, any of those who have like this routes,:oops:

 

Many thanks,

Posted

You can specify the angle of rotation in the LISP (RoAtt) in this thread:

http://www.cadtutor.net/forum/showthread.php?t=37859

 

Lee

Posted

This can match the rotation:

 

The source can be any object with the Rotation Property (i.e. MTEXT, TEXT, ATTRIB...)

 

(defun c:mtrot (/ ent sObj att dObj)
 (vl-load-com)
 (if
   (and
     (setq ent
       (car (nentsel "\nSelect Source Object: ")))
     (vlax-property-available-p
       (setq sObj
         (vlax-ename->vla-object ent)) 'Rotation))
   (while
     (and
       (setq att
         (car (nentsel "\nSelect Destination Attribute: ")))
       (eq "AcDbAttribute"
         (vla-get-ObjectName
           (setq dObj
             (vlax-ename->vla-object att)))))
     (vla-put-rotation dObj
       (vla-get-rotation sObj))))
 (princ))
           

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