Hi, Is it possible to return the text element that has been intersected by a line element as shown below -
Hi Les,
Les Leayr said:Is it possible to return
I guess you think "find overlapped elements", because when you use "return", my question would be "return from what?" ;-)
Les Leayr said:the text element that has been intersected by a line element
MicroStation VBA offers several methods detecting intersections between different types of elements, but naturally it does not offer anything so specific like "text crossed by line". So it's up to you to use available methods and to implement own detection mechanism.
It would be not very complicated, I can imagine several different ways how to do it. What is the best depends on exact formulation of your question:
Workflow using intersection methods:
An alternative can be to create a fence from text range and to use fence related methods to find elements it contains.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point