Select All [VBA][V8i]

HI everyone,

CadInputQueue.SendCommand "CHOOSE ALL" and scan criteria are the only ways to select all elements in a level, aren't?

Bye,

Paolo

Parents
  • Hi Paolo,

    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.

    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):

    • Using user tool(s) like PowerSelector, Select By Attributes etc.
    • Using key-in(s). Some from them belongs to particular tool (PowerSelector, fence), some to a dialog and some are are independent (like "choose all").
    • Writing code (e.g. VBA) that will add graphical elements to Selection Set using SelectElement method (which btw is very slow)

    Because these ways are different, they provide different results, so it's necessary to specify exactly, what you need:

    • To choose all elements (including in not visible levels), the key-in "choose all" is the right way.
    • To select elements in specific level, key-in "level element select" should be used.
    • Using ElementScanCriteria class and Scan and SelectElement methods, similar results can be achieved in VBA code.

    With regards,

      Jan

Reply
  • Hi Paolo,

    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.

    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):

    • Using user tool(s) like PowerSelector, Select By Attributes etc.
    • Using key-in(s). Some from them belongs to particular tool (PowerSelector, fence), some to a dialog and some are are independent (like "choose all").
    • Writing code (e.g. VBA) that will add graphical elements to Selection Set using SelectElement method (which btw is very slow)

    Because these ways are different, they provide different results, so it's necessary to specify exactly, what you need:

    • To choose all elements (including in not visible levels), the key-in "choose all" is the right way.
    • To select elements in specific level, key-in "level element select" should be used.
    • Using ElementScanCriteria class and Scan and SelectElement methods, similar results can be achieved in VBA code.

    With regards,

      Jan

Children
No Data