2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations
2024-03-27 10:05 PM - edited 2024-03-27 10:06 PM
Hi
Given the nth character in a text element, is it possible to easily get that characters position in world coordinates?
It could probably be calculated from a combination of API_TextType, API_ParagraphType and maybe API_FontType but it would be tricky to cover every case. Is there an easy way to do it? I could not find anything readily available in the API documentation.
Solved! Go to Solution.
2024-04-10 07:58 AM
Hi Benji,
I don't know of any readily available function. I only found ACAPI_Element_GetTextLineLength. With that it might be worth a try to get the line length of the substring ending just before the character you are interested in. That could at least simplify that part.
Hope that helps,
Bernd
2024-04-10 07:58 AM
Hi Benji,
I don't know of any readily available function. I only found ACAPI_Element_GetTextLineLength. With that it might be worth a try to get the line length of the substring ending just before the character you are interested in. That could at least simplify that part.
Hope that helps,
Bernd
2024-04-12 01:26 PM - edited 2024-04-12 01:26 PM
Ah, surely will be useful for what I'm trying to do, thanks Bern!