I am looking for a method that would allow me to parse text from a selected text element and attach the parsed text to a defined general url, then I would then add the url link to the original element.
I know that this is a tall order, but I cannot seem to figure this one out. I am currently looking into the GetCustomProperty method, but I was wondering if there was a more well defined way to accomplish my task.
Hi Jeff,
I have to admit I don't know why to post the same questing repeatedly.
Unknown said:method that would allow me to parse text from a selected text element
It's hard to answer if you don't provide information how and using what code the text is selected. So assuming you are working with Selection Set using standard approach, so you are in an element enumerator. In such case this code should be enough:
Dim textEl As TextElement Set textEl = ee.Current.AsTextElement Dim myText As String myText = textEl.Text
Unknown said:I know that this is a tall order
It seems to me not clear from your question if you ask for help / advice like "see VBA help, method GetSelectedElement" or you want somebody will write a code for you.
Unknown said:I am currently looking into the GetCustomProperty method
No, it's a wrong way.
I have a question: Do you have Learning MicroStation VBA book? It provides a huge number of code examples and useful advices, which make using MicroStation VBA easier.
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point