Jump to content
amir0914

problem with boundingbox

Recommended Posts

amir0914

Hi all, I use Bounding box to create box around text but it doesn't create exactly around rotated text , my code

 

  (setq s (car (entsel)))
  (setq obj (vlax-ename->vla-object s))
  (vla-getboundingbox obj 'bl 'tr)
  (setq p1 (vlax-safearray->list bl))
  (setq p2 (vlax-safearray->list tr))

  (command "rectangle" p1 p2)

 

Thanks in advanced.

Screenshot (1114).png

Share this post


Link to post
Share on other sites
amir0914
1 hour ago, rlx said:

Thanks, Can we also do it for dimension text?? (it means create bounding box around text of dimension)

Share this post


Link to post
Share on other sites
marko_ribar
1 hour ago, amir0914 said:

Thanks, Can we also do it for dimension text?? (it means create bounding box around text of dimension)

 

You can set up that through dimension style dialog box, just experiment a little on your own...

  • Like 1

Share this post


Link to post
Share on other sites
amir0914
15 hours ago, marko_ribar said:

 

You can set up that through dimension style dialog box, just experiment a little on your own...

Thanks alot.

Share this post


Link to post
Share on other sites

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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