hexagon logo

help Select Commands Script

Hey Guys,

If I manually select a block in my program that goes, for example, from 'CIR1' to 'CIR4', is there a way for it to return the first and last element I have selected through a script?

To select a block through a script, the 'selectCommands' command exists

Ew.selectCommands StartCmd,EndCmd
  Ew.CopySelectedToClipBoard

In this case, I want it to return the start and end of what I already have selected. I'm not sure if I'm explaining myself correctly.

thanks

Parents Reply Children