hexagon logo

Return Edit window selection to script

Is there a way to return selected commands from the edit window to a script?

Ex: If I have 5 dimensions selected in the edit window can I send those commands to a script?

Thanks
Parents
  • Don - if we were talking about marked then it would be easy, command object has a 'marked' property.


    Agreed, not sure if there is a highlighted property, and didn't yet take the time to look but I know I've never tried it before.

    I found nothing on using highlighted text, but as it turns out, accessing the clipboard is a piece of cake. Once you've highlighted and pressed ctrl-c, a command such as this is all it takes to see what you've got -


    MsgBox Clipboard.GetText()

    from there, its just text writing commands to store that information I a file somewhere else.
Reply
  • Don - if we were talking about marked then it would be easy, command object has a 'marked' property.


    Agreed, not sure if there is a highlighted property, and didn't yet take the time to look but I know I've never tried it before.

    I found nothing on using highlighted text, but as it turns out, accessing the clipboard is a piece of cake. Once you've highlighted and pressed ctrl-c, a command such as this is all it takes to see what you've got -


    MsgBox Clipboard.GetText()

    from there, its just text writing commands to store that information I a file somewhere else.
Children
No Data