Wait for multiple user selections
Posted: Wed May 10, 2023 12:40 am
Hello, I am working on a macro sub used to edit a 3d sketch in a assembly context, we need to copy a portion of a 3D sketch in the assembly (all lines) inside a 3d sketch of the part.
I was able to chain select and copy the entities from the assembly sketch with one click thanks to the api, but I have some cases in which a single chain cannot be selected in full.
This happens with some portion of the assembly 3d sketch in which the lines that are not drawn along X, Y or Z directions but oblique (construction lines srawn along x, y or z and resulting line inclined accordingly). This make the chain to split in two portions. In those cases my one click selection fail to select the whole chain and I should be able to make an additional selection.
Is it possible (in theory) to wait for multiple user selections inside a sketch before continuing the macro execution?
- Sketch already in edit mode inside the main macro
1 Select the first chain clicking one line
2 Select the second chain another line
3 Select the n chain...
4 send all the selections to the macro to be processed (entity copy and fillet between)
Any idea?
I was able to chain select and copy the entities from the assembly sketch with one click thanks to the api, but I have some cases in which a single chain cannot be selected in full.
This happens with some portion of the assembly 3d sketch in which the lines that are not drawn along X, Y or Z directions but oblique (construction lines srawn along x, y or z and resulting line inclined accordingly). This make the chain to split in two portions. In those cases my one click selection fail to select the whole chain and I should be able to make an additional selection.
Is it possible (in theory) to wait for multiple user selections inside a sketch before continuing the macro execution?
- Sketch already in edit mode inside the main macro
1 Select the first chain clicking one line
2 Select the second chain another line
3 Select the n chain...
4 send all the selections to the macro to be processed (entity copy and fillet between)
Any idea?