Hi,
How can I select all elements in the same graphic group number?
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 AlisAEC 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!
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.
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
Unknown said: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.
The described behaviour was still so in previous versions of MicroStation, You could always overcome the GG lock with a selection set. If this beaviour is not so in your SS2 than you must have another version than I, where this is even so (just tested) I teached this to my students as a favour for the GG's.
Michael
Michael Stark said: The described behaviour was still so in previous versions of MicroStation, You could always overcome the GG lock with a selection set. If this beaviour is not so in your SS2 than you must have another version than I, where this is even so (just tested) I teached this to my students as a favour for the GG's.
Thank you Michael. GG Lock is not working properly with selection sets MicroStation versions SS3 and higher. In SS2, it is working fine as expected. Can you test with SS3?
Michael Stark said: No matter if GG lock is on, when you have element in selection set, GG lock is ignored.
No matter if GG lock is on, when you have element in selection set, GG lock is ignored.
Why? What is the logic here?
What is the difference between "you have elements in selection set before entering command" or "you selected element after entering command" ? It is expected to have the same behaviour.