[v8i MDL] Selecting all elements in the same graphic group

Hi,

How can I select all elements in the same graphic group number?

Parents
  • Scan the model. Use mdlScanCriteria_createAllGGCriteria to specify a GG to be captured in the scan.

    If you mean literally 'select all elements', then use your scan callback function to add each found element to the selection set.

     
    Regards, Jon Summers
    LA Solutions

  • Unknown said:

    Scan the model. Use mdlScanCriteria_createAllGGCriteria to specify a GG to be captured in the scan.

    Thank you Jon. It seems mdlScanCriteria_creataAllGGCriteria function is usefull for this purpose. There may be an easier way.

    I want to simulate this in my custom move command;

    Move Element command working procedure is as follows;

    1. Select an element with Choose Element command.

    2. Select Move Element command.

    3. Click first point, this adds any other member element on the selection set by using graphic group numbers of selected elements. (This is what I am trying to do)

    4. Click second point to be moved.

    5. All selected elements and graphic group members are moved.

    Kind regards,

    Sedat Alis
    AEC Technology Inc.

  • I think you can do what you want using existing MicroStation functionality.  Investigate the GG Lock.  When the GG Lock is on, many operations apply to all members of the GG in addition to the element you select.

    No programming required!

     
    Regards, Jon Summers
    LA Solutions

  • Unknown said:

    I think you can do what you want using existing MicroStation functionality.  Investigate the GG Lock.  When the GG Lock is on, many operations apply to all members of the GG in addition to the element you select.

    No programming required!

    Thank you Jon. I think so. But GG Lock is not working as expected sometimes.

    Suppose that GG Lock is active and you have two elements in the same graphic group.

    1. When you select Move command, select element and move it. All elements in the same graphic group are moved. This is fine.

    2. When you select element using Choose Element command, select Move command and move it. Only selected element is moved even GG Lock is active. It seems this is a bug in SS3. In SS2, all elements are moved in the same graphic group.

    Kind regards,

    Sedat Alis
    AEC Technology Inc.

  • Unknown said:
    When you select element using Choose Element command, select Move command and move it. Only selected element is moved even GG Lock is active. It seems this is a bug in SS3. In SS2, all elements are moved in the same graphic group

    1. Post that observation to the MicroStation Forum, and ask if anyone else sees the same
    2. Submit a formal report, with evidence, about that bug to Bentley Systems. 
    3. Depending on MicroStation's internal logic for graphic groups, attempting a work-around with your own MDL may lead to other problems.

     
    Regards, Jon Summers
    LA Solutions

Reply
  • Unknown said:
    When you select element using Choose Element command, select Move command and move it. Only selected element is moved even GG Lock is active. It seems this is a bug in SS3. In SS2, all elements are moved in the same graphic group

    1. Post that observation to the MicroStation Forum, and ask if anyone else sees the same
    2. Submit a formal report, with evidence, about that bug to Bentley Systems. 
    3. Depending on MicroStation's internal logic for graphic groups, attempting a work-around with your own MDL may lead to other problems.

     
    Regards, Jon Summers
    LA Solutions

Children
No Data