Skip to main content
Question

DWG - Get Bounding box of text without anchor point

  • February 12, 2020
  • 2 replies
  • 16 views

michaelpascoe

Hello all,

I'm reading labels from a DWG and trying to determine what line they apply to based on their location relative to the line. As part of this I use the oriented bounding box of the text rather than the anchor point as the text usually has the anchor point below and to the left of the actual text while it is the actual text the user has positioned relative to the line. A BoundingBoxReplacer works well for this. However the bounding box includes the anchor point. See pic:

 

Is it possible to get the bounding box without the anchor point included?

Thanks

Michael Pascoe

cc: @deanhowell

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

deanhowell
Influencer
Forum|alt.badge.img+24
  • Influencer
  • 315 replies
  • February 12, 2020

Hey @michaelpascoe, if you use the TextStroker, then the BoundingBoxRelpacer, that might give you the result you need but it means knowing what font is used.


michaelpascoe
  • Author
  • 7 replies
  • July 31, 2020

Hi @deanhowell​ ,

I just realised I never responded to this. Stroking the text then generating the bounding box worked perfectly.

Thanks

Michael