HI everyone,
CadInputQueue.SendCommand "CHOOSE ALL" and scan criteria are the only ways to select all elements in a level, aren't?
Bye,
Paolo
VBA provides the Selection Set, Fence and Scan choices.
The first two provide you with a VBA ElementEnumerator object. ModelReference.Scan gives you, as a programmer, more flexibility.
ElementEnumerator
ModelReference.Scan
MicroStation's Fence has various selection modes. Fence Void may be worth a look, because it collects elements outside the fence boundary.
Regards, Jon Summers LA Solutions
Hi Paolo,
Paolo Maggiani said:to select all elements in a level
Your question is not consistent: The subject is "select all", but your text says "all elements in level". They are two pretty different things.
Paolo Maggiani said:are the only ways to select all elements in a level, aren't?
I think not, for more reasons.
You are mixing pines and apples: "choose all" is key-in to select all elements, whereas scan criteria select nothing, it's just VBA API class.
Also, there are more tools, how to select element(s). As Jon wrote, it's e.g., which is another "type", because it's user tool.
So in summary: There are more way, how to select element(s):
Because these ways are different, they provide different results, so it's necessary to specify exactly, what you need:
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point