Jump to content

problem with boundingbox


RepCad

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

On 8/10/2019 at 5:46 PM, marko_ribar said:

 

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

Thanks a lot.

Edited by amir0914
Link to comment
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
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...