Hi, everyone
I am using mdl function 'mdlState_startModifyCommand' to sart a modify command which first locate a line element and second locate a shape element. How to implement this? My code is as following, it does not start second location.
boolean identifyState;
Private void filterElems (int preLocate, MSElementUnion *elmP, int fileNum, ULong filePos) { if (identifyState){ // accept shape and reject all other elems }else{ // accept line and reject all other elems } } Public void startCmd (void) { mdlLocate_allowLocked ; mdlState_startModifyCommand (startCmd, acceptShapeFunc, NULL, acceptLineFunc, NULL, 13, 1, FALSE,
1);
mdlLocate_setFunction (LOCATE_POSTLOCATE, filterElems); mdlLocate_init ; }
Any help is greatly appreciated.
Foo.
I am using mdl function 'mdlState_startModifyCommand' to sart a modify command which first locate a line element and second locate a shape element. How to implement this? My code is as following, it does not start second location.
boolean identifyState;
Private void filterElems (int preLocate, MSElementUnion *elmP, int fileNum, ULong filePos) { if (identifyState){ // accept shape and reject all other elems }else{ // accept line and reject all other elems } } Public void startCmd (void) { mdlLocate_allowLocked ; mdlState_startModifyCommand (startCmd, acceptShapeFunc, NULL, acceptLineFunc, NULL, 13, 1, FALSE,
1);
mdlLocate_setFunction (LOCATE_POSTLOCATE, filterElems); mdlLocate_init ; }
Any help is greatly appreciated.
Foo.