[v8i MDL] Setting string of a text element descriptor

Hi,

What is the simplest way to set string of a text element descriptor?

Parents
  • Unknown said:
    What is the simplest way to set string of a text element descriptor?

    1. Read the text element descriptor
    2. Create a new text element
      1. Use the element in the descriptor as a template
      2. Supply a new text string to the mdlText_create function

    3. 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'.

     
    Regards, Jon Summers
    LA Solutions

    Answer Verified By: Sedat Alis 

Reply
  • Unknown said:
    What is the simplest way to set string of a text element descriptor?

    1. Read the text element descriptor
    2. Create a new text element
      1. Use the element in the descriptor as a template
      2. Supply a new text string to the mdlText_create function

    3. 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'.

     
    Regards, Jon Summers
    LA Solutions

    Answer Verified By: Sedat Alis 

Children
  • Unknown said:
    1. Read the text element descriptor
    2. Create a new text element
      1. Use the element in the descriptor as a template
      2. Supply a new text string to the mdlText_create function

    3. 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 Alis
    AEC Technology Inc.