Filter Elements from Off level - Reference file

Discussion in 'Microstation' started by skittu, Mar 30, 2006.

  1. skittu

    skittu Guest

    Hi, I try to filtered out the elements, are in switched off level from
    Reference. It doesn't work. Can anyone please suggest me ?

    Here are snippet of code :

    mdlElement_getProperties(&levelID, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, &ele_descrp->el); levelMaskP =
    mdlLevelTable_getDisplayMask(modelRef); pBitFlagOut =
    mdlBitMask_testBit(levelMaskP, levelID-1);

    if(pBitFlagOut != TRUE) { mdlElmdscr_freeAll( &ele_descrp); /* don't
    want so go for next */ continue; }

    ------------------------------

    Also i tried :

    mdlElement_getProperties(&levelID, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, &ele_descrp->el); mdlLevel_getDisplay(&pBitFlagOut, modelRef,
    levelID-1);

    if(pBitFlagOut != TRUE) { mdlElmdscr_freeAll( &ele_descrp); /* don't
    want so go for next */ continue; }

    Thanks, Vasu
     
    skittu, Mar 30, 2006
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.