[V8 MDL] Is mdlElmdscr_areTwoIdentical broken?

I wrote some VBA code to compare two elements.  The VBA code calls into the MDL.  The VBA code uses mdlElmdscr_areIdenticalToTolerance because mdlElmdscr_areTwoIdentical never returns True.

Is mdlElmdscr_areTwoIdentical broken?

Parents Reply Children
  • Hi Rick,

    When I tested your DGN in my box, mdlElmdscr_areIdenticalToTolerance always returns true for me even only use compare option COMPAREOPT_STANDARD_IGNORES. I am testing on MSCE U12. The test code is as below:

    void compareElems()
    {
    	MSElementDescrP preEle, curEle;
    	mdlAssoc_getElementDescr(&preEle, NULL, 798L, ACTIVEMODEL, FALSE);
    	mdlAssoc_getElementDescr(&curEle, NULL, 803L, ACTIVEMODEL, FALSE);
    	bool isSame = mdlElmdscr_areIdenticalToTolerance(preEle, curEle, COMPAREOPT_STANDARD_IGNORES, 0.1, 0.1);
    	mdlElmdscr_freeAll(&preEle);
    	mdlElmdscr_freeAll(&curEle);
    	WPrintfString wStr(L"isSame = %d", isSame);
    	mdlDialog_dmsgsPrint(wStr);
    }