when mdlElmdscr_areIdenticalToTolerance can return a true? does the api works?

Hi Experts,

   I have a quesiotn about the api mdlElmdscr_areIdenticalToTolerance , i want to check whether two elements are identical,

6445.forImport.dgn

I try with the below code(option), but always return false for my model. where i have two identical mesh.

my code is as below,

bool isSame = mdlElmdscr_areIdenticalToTolerance(preEle, curEle, COMPAREOPT_IGNORE_UNORDEREDSIBLINGORDER, 0.1, 0.1);

also i try it with another model,

 box slab.dgn

In this model, I have two elements, the second one is copied from the first one, and they are in different position, in my case,  i will first move those two elements to the origin (0,0,0), so there in the same postion,

then i call the api to check whether thoes two elements are identicaly, but still return false.  so what is the expected result for this case, i would expect it return true, since the two elements are the same one in the same position.

I am running with Microstation CE, 10.07.00.39

I have read other posts which was posted several years ago,  but did not found any clue for my quesiton.

thanks,

Rick

Parents Reply Children
No Data