[V8i - VBA] ScanCriteria "flow"

Good evening people :-)

Do you know how ScanCriteria works?  In which way ScanCriteria finds out elements in the space? Can I (code) drive the "scan" through the space? 

I am going to (try to) explain myself.

For example, I hava a 3D dgn file where, in the Default model, same level, I have 3 "lines" of pipes.(separate and casually arranged in space)

Each line has two or more pipes. Each pipe is a cell.

My aim is fill "Description" field of CellElement with a progressive ID; first one is given by user.

Each pipe of the same line has to have a continuous ID.

For example: if Line 1 has 3 pipes and the starting ID is "AA-021", first pipe will be named "AA-021", 2nd "AA-022" and 3rd "AA-023".

Using ScanCriteria, I got an ElementEnumerator filled with right elements (in this case, cells) but in a order apparently random.

So the naming appears randomly and without a sense: for example: for Line 1 I could have first pipe named "AA-021", 2nd "AA-024" and 3rd "AA-027". And "AA-022" is given to a pipe of Line 2 and may "AA-023" is given to Line 3....

Any suggestions?

Thanks a lot.

Bye,

Paolo

Parents Reply Children
No Data