[V832004]problem copying MSElementDescr between models with line style properties

Hi everyone

I have a problem

when trying to copy element from one model to active model

when an element is with line style

After copying element to my destination model element is without line style

I using method to copy edP from source model

mdlElmdscr_duplicate (&cdP, edP);

and adding to master model

mdlElmdscr_display (cdP, MASTERFILE, NORMALDRAW);
mdlElmdscr_add (cdP);

Any idea - what am I doing wrong?

Parents
  • Unknown said:
    mdlElmdscr_duplicate (&cdP, edP);

    What am I doing wrong?

    When you duplicate, you haven't changed models, so there's no need for MicroStation to copy related data such as line styles.

    Unknown said:
    When trying to copy element from one model to active model

    You almost supplied your own answer: use mdlElmdscr_copy.  Provide a CopyContext, which enables MicroStation to copy related data such as the line style.

     
    Regards, Jon Summers
    LA Solutions

    Answer Verified By: Robert Hook 

Reply
  • Unknown said:
    mdlElmdscr_duplicate (&cdP, edP);

    What am I doing wrong?

    When you duplicate, you haven't changed models, so there's no need for MicroStation to copy related data such as line styles.

    Unknown said:
    When trying to copy element from one model to active model

    You almost supplied your own answer: use mdlElmdscr_copy.  Provide a CopyContext, which enables MicroStation to copy related data such as the line style.

     
    Regards, Jon Summers
    LA Solutions

    Answer Verified By: Robert Hook 

Children