hexagon logo

Autorun application/script in PC-DMIS?

Like the title says...

Does anyone know of a way to have an application or script to run upon open an existing partprogram or creating a new partprogram?

Also, can I create toggle icons in the custom toolbar? Like, on/off (ie. 'points only' or 'use theos from CAD')?
Parents
  • SABarber,

    The 'Commands.CurrentCommand.ID' is returning 'nil' or '' if the cursor is located on a "ENDMEAS/" line in the editwindow. I have placed the cursor on all possible commands and the 'Commands.CurrentCommand.ID' is getting the ID of the current command (cursor location) but not if the cursor is located at an "ENDMEAS/" line.

    Is this a bug or is there another way for me to know which feature the "ENDMEAS/" belongs to?

    Unless there is another way for me to know my exact location in the editwindow?

    If you don't know the answer to my problem (which makes it hard to do some very useful stuff in automation) could you please forward it to the correct person (I assume you are in the software business at WAI)?

    I would appreciate it very much!


    No need for the above - tried a little bit harder and found out that I could limit the enumeration of the commands with the GetUniqueID property. However, I think that a property that would let the automation programmer know exactly where in the edit window the cursor is positioned would be a nice enhancement to the library (like EditWindow.CurrentPosition or Commands.CurrentPosition).
Reply
  • SABarber,

    The 'Commands.CurrentCommand.ID' is returning 'nil' or '' if the cursor is located on a "ENDMEAS/" line in the editwindow. I have placed the cursor on all possible commands and the 'Commands.CurrentCommand.ID' is getting the ID of the current command (cursor location) but not if the cursor is located at an "ENDMEAS/" line.

    Is this a bug or is there another way for me to know which feature the "ENDMEAS/" belongs to?

    Unless there is another way for me to know my exact location in the editwindow?

    If you don't know the answer to my problem (which makes it hard to do some very useful stuff in automation) could you please forward it to the correct person (I assume you are in the software business at WAI)?

    I would appreciate it very much!


    No need for the above - tried a little bit harder and found out that I could limit the enumeration of the commands with the GetUniqueID property. However, I think that a property that would let the automation programmer know exactly where in the edit window the cursor is positioned would be a nice enhancement to the library (like EditWindow.CurrentPosition or Commands.CurrentPosition).
Children
No Data