Functions | |
void | mdlLocate_allowLocked () |
Obsolete enum; here only to help convert code. More... | |
void | mdlLocate_noElemAllowLocked () |
Set the Search Criteria as follows: More... | |
void | mdlLocate_noElemNoLocked () |
Set the Search Criteria as follows: More... | |
void | mdlLocate_normal () |
Set the Search Criteria as follows: More... | |
void | mdlLocate_clearElemSearchMask (int numElems, int *elementNum) |
Turn off Element types in the Search Criteria. More... | |
void | mdlLocate_setElemSearchMask (int numElems, int *elementNum) |
Set or clear Element types in the Search Criteria. More... | |
void | mdlLocate_allowSelfRefs () |
Set the Search Criteria to allow self-references of the Active Model. More... | |
void mdlLocate_allowLocked | ( | ) |
Obsolete enum; here only to help convert code.
MicroStation internally stores a Search Criteria that determine which elements are selected during the Element Location process.
The Search Criteria has three parts:
The Search Criteria Functions provide ways to set each of these parts so your tool will pick (only) the proper elements.
The Element Type criteria holds a flag for each known type of displayable element. If the flag is on, elements of that type will be considered eligible for selection. Otherwise they will be rejected.
the Element Lock State criteria determines whether locked elements are eligible for selection. An element is considered locked if its lock bit is on, if it is on a locked level, or if any of its children are locked.
The Model List criteria is simply a list of models that are eligible for selection. Set the Search Criteria as follows:
void mdlLocate_allowSelfRefs | ( | ) |
Set the Search Criteria to allow self-references of the Active Model.
Generally, this is used in conjunction with mdlLocate_normal.
void mdlLocate_clearElemSearchMask | ( | int | numElems, |
int * | elementNum | ||
) |
Turn off Element types in the Search Criteria.
[in] | numElems | number of entries in elementNum element number array |
[in] | elementNum | element number array. Each int holds one element type to be turned off. |
void mdlLocate_noElemAllowLocked | ( | ) |
Set the Search Criteria as follows:
This function is useful for finding only a few element types. After calling this function, call mdlLocate_setElemSearchMask with the element types to be located.
void mdlLocate_noElemNoLocked | ( | ) |
Set the Search Criteria as follows:
This function is useful for finding only a few element types. After calling this function, call mdlLocate_setElemSearchMask with the element types to be located.
void mdlLocate_normal | ( | ) |
Set the Search Criteria as follows:
void mdlLocate_setElemSearchMask | ( | int | numElems, |
int * | elementNum | ||
) |
Set or clear Element types in the Search Criteria.
Turns on the bits in the Element Type Search Criteria for each member of elementNumber.
[in] | numElems | the number of entries in the array elemenNum |
[in] | elementNum | an array of ints. Each int holds one element type to be turned on or off. |