Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 383

Changing the Graphic Group of cell elements

$
0
0

Hi Freinds,

I am modifying the Linear elements along with Point Elements (Cell and Text). After matching with target elements by rotation and scaling the elements. It is lossing the Graphic Group and another GGroup will be assigning. So i have tried to implement by setting the GGroup by get/Set. My code  is given below:

mdlElmdscr_readToMaster(&msedSrcElmP, elmDetailsP->ulElmFilPos, elmDetailsP->dgnModelRef, FALSE, NULL); --- Reading

mdlElmdscr_getProperties  (NULL, &uintggNum, NULL, NULL, NULL, NULL, NULL, NULL, msedSrcElmP); -- GGroup

mdlElmdscr_duplicate (&msedNewElmP, msedSrcElmP);

  mdlVec_subtractPoint (&dpSubPt, &dpNewOrgPt, &dpOrgPt);
    
  mdlTMatrix_getIdentity (&tMatrixNew);
   
  mdlTMatrix_setTranslation (&tMatrixNew, &dpSubPt);

  mdlElmdscr_transform(msedNewElmP, &tMatrixNew); ---- after Transforming
    
  mdlElmdscr_rewrite (msedNewElmP, msedSrcElmP, ulCurFilPos); ---   

mdlElmdscr_setProperties  (msedNewElmP,NULL, &uintggNum, NULL, NULL, NULL, NULL, NULL, NULL); - updating the Original GGroup

  mdlElmdscr_rewrite (msedNewElmP, msedNewElmP, ulCurFilPos); - rewriting

Please suggest me to resolve this issue.

Thanks,

Sreekanta.M


Viewing all articles
Browse latest Browse all 383

Latest Images

Trending Articles



Latest Images