ActiveX Button EventMark with Custom Comment

41 views
Skip to first unread message

Chris

unread,
Oct 1, 2024, 10:02:25 AM10/1/24
to IADS
Hi all,

in IADS, I am trying to fullfill the following action with an activeX button: "EventMark with Custom Comment" (shift+F1).

I am able to create the button, start the event with thatbutton and also add a static argument which is the same for all the events sarted with this button. But I woul like for that window to open in which the EventMark comment can be edited.

Looking forward to you ideas.
Regards
Chris

Chant, Adam

unread,
Oct 1, 2024, 10:21:35 AM10/1/24
to ia...@googlegroups.com

Chris,
That functionality is not directly available from an ActiveX Object. The closest I can recommend is to use an IadsTextInput Object to drive the ActionArgument of the Acton Object.

You can use the OutputName Property of the IadsTextInput Object to populate the UserInputValues Table to be accessed via a GetUserinput(“OutputName”) that would then be attached to the Action Object’s ActionArgument field. So rather than having a static value in that field it takes a derived parameter. This derived parameter is populated with the contents of an IadsTextInput Object.

The key detail to this is that you have to first update the IadsTextInput prior to starting the test point, otherwise it will take the previous value for its TestPoint Column entry.


A similar, less robust, way to do this would be to shift drag and drop with the mouse from the IadsTextInput to the Action Object Argument > More > ActionArgument. When executed properly it will display [fx]TextInputN.Value for the ActionArgument property. This is an acceptable method, but it has a number of limitations. I will often use this method for quick checkout of concepts, but change it to use the UserInputValues Table as that method parameterizes the value of the IadsTextinput so that it can easily be accessed and/or modified by other Analysis Windows or derived functions.

 

If you need additional direction on implementing either of these methods then let me know and I will provide further details.

                               
Thank you,

Adam Chant
Project Engineer, IADS

Curtiss-Wright
190 Sierra Court A-3 Palmdale, CA 93550
T: 661.273.7003 x 2210
ach...@curtisswright.com

iads-s...@curtisswright.com

 

From: ia...@googlegroups.com <ia...@googlegroups.com> On Behalf Of Chris
Sent: Tuesday, October 1, 2024 2:18 AM
To: IADS <ia...@googlegroups.com>
Subject: [IADS] ActiveX Button EventMark with Custom Comment [EXTERNAL]

 

WARNING: This message came from an external source. Please exercise caution and proper judgment when opening any attachments, clicking links or responding to this message.


 

--
You received this message because you are subscribed to the Google Groups "IADS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iads+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iads/5ee1194c-6c95-4685-8260-b1ef0842871cn%40googlegroups.com.


This e-mail and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have reason to believe that you have received this e-mail in error, please notify the sender and destroy this e-mail and any attached files. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the Curtiss-Wright Corporation or any of its subsidiaries. Documents attached hereto may contain technology subject to government export regulations. Recipient is solely responsible for ensuring that any re-export, transfer or disclosure of this information is in accordance with applicable government export regulations. The recipient should check this e-mail and any attachments for the presence of viruses. Curtiss-Wright Corporation and its subsidiaries accept no liability for any damage caused by any virus transmitted by this e-mail.

For information about how we process personal data and monitor communications, please visit https://www.curtisswright.com/privacy-notice/default.aspx

Christian Reinecke

unread,
Jan 24, 2025, 2:09:51 PMJan 24
to IADS
Hi Adam,

I got this functionality partially working, by using a VB Script, simulating pushing the shift and F1 buttons. The VB script is being triggered via IadsAction, trggered by an IadsButton. It works initially, and the comment window opens after pushing the butten, but in addition an error pops up (see screenshot). Do you have any idea how to get this working without this error?

2nd question: Is there any possibility to get the checkbox "prepend event number" deactivated as a default setting?

Thank you
Christian

VB_script.png

Chant, Adam

unread,
Jan 24, 2025, 3:20:08 PMJan 24
to ia...@googlegroups.com

Chris,
The SendKeys method has reserved characters and it’s faulting on the parenthesis at the end of your quoted text.

The following works as intended.
WshShell.SendKeys "+{F1}"

 

I’m sorry, but we can not change the default behavior of the checkbox in the Event Marker Predefined Comments window. It does however hold the state you set it to while IADS is running so it would only need to be disable once. As long as that Client doesn’t log out it will maintain the state set. Even changing desktops will retain the state of the checkbox.


Thank you,

Adam Chant
Project Engineer, IADS

Curtiss-Wright
190 Sierra Court A-3 Palmdale, CA 93550
T: 661.273.7003 x 2210
ach...@curtisswright.com

iads-s...@curtisswright.com

 

Reply all
Reply to author
Forward
0 new messages