Hi,
What is the simplest way to set string of a text element descriptor?
Unknown said:What is the simplest way to set string of a text element descriptor?
To answer your question a different way, there is no 'replace string' function. The MicroStation idiom when editing an element is 'read-copy-modify-replace'.
Regards, Jon Summers LA Solutions
Answer Verified By: Sedat Alis
Unknown said: Read the text element descriptor Create a new text element Use the element in the descriptor as a template Supply a new text string to the mdlText_create function Create a new descriptor from your text element using mdlElmdscr_new() To answer your question a different way, there is no 'replace string' function. The MicroStation idiom when editing an element is 'read-copy-modify-replace'.
Thank you so much Jon. I am doing the same at the moment and it seems there is no other practical way.
Kind regards,
Sedat AlisAEC Technology Inc.