Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: How to draw a text along curve using MDL?

$
0
0

Please follow the MicroStation Programming forum best practices.

Identify Your Platform

Please identify the version of MicroStation, or other product such as PowerDraft, that you are using: MicroStation CONNECT or MicroStation V8i. What is the 8-digit version number (e.g. 10.xx.yy.zz) of MicroStation?

The APIs supplied with MicroStation CONNECT are different to those supplied with MicroStation V8i. Consequently, our answers are likely to be different.

[quote user="12EF584C-5BB8-47B1-9B35-4B3C5A4BAFAF"]Is there any function in MDL sdk to draw text along element i.e. arc?[/quote]

There is no API that provides a function to place text along a linear element (keep in mind that linear means many things, more than just a straight line).

Probably the algorithm that MicroStation uses is complex, and is not published.  What happens, for example...

  1. When placing text along an arc whose radius is much smaller than the text size? 
  2. What happens if the element is shorter than the overall text length?

I'm sure you'll find other corner cases.

You need to break your text string into individual characters.  This means that the text is no longer editable as a word or sentence.  Then calculate where the origin of each letter lies on your place along path.


Viewing all articles
Browse latest Browse all 7260

Trending Articles