Jump to content
Roshan Shiveshwar

To capture element quality check display messages

Recommended Posts

 

Capture.JPG.fc3e61ef701514856bdfcf69d81f8e56.JPG

 

Hi, 

 

I want to capture messages those are displayed at the bottom left side of the screen when we perform element quality checks. (Pls refer image).

Actually, I am specifically looking for the value inside the red box.

 

Is there any way we can capture that value?

 

Thanks

 

 

 

 

Share this post


Link to post
Share on other sites

Hi Roshan and Tinh,

 

The command "set Message [.mainFrame.bottom.message_label cget -text]" seems to work fine in Hm 14.0.130. But, is throwing error - bad window or invalid command name ".mainFrame.bottom.message_label", for Hypermesh above HM 14.1 and also HM 2017. Can you please suggest any solution to this.

 

Thanks,

SAGAR

Share this post


Link to post
Share on other sites

I don't have hm here so let's check it tomorrow

There is a command that display the message you can hook, i remember it is in HM_Framework namespace (you try searching it by info procs)

Don't need to trace message_label widget

Share this post


Link to post
Share on other sites
9 hours ago, Jeffersondhv said:

Is there a command that can be used to run these quality checks and get the output directly from the code?

 

Thanks,

Jefferson

Cannot get %fail directly, you have to calculate it by #fails/total

Use *elementtest... commands

Jeffersondhv likes this

Share this post


Link to post
Share on other sites
14 hours ago, Sagar Motwani said:

Hi Roshan and Tinh,

 

The command "set Message [.mainFrame.bottom.message_label cget -text]" seems to work fine in Hm 14.0.130. But, is throwing error - bad window or invalid command name ".mainFrame.bottom.message_label", for Hypermesh above HM 14.1 and also HM 2017. Can you please suggest any solution to this.

 

Thanks,

SAGAR

 

If you are usinh hypermesh desktop, it is .mainFrame.bottom.leftfrm.label

 

In HM, it is referred by variable $::HM_Framework::p_message_label

Sagar Motwani and Jeffersondhv like this

Share this post


Link to post
Share on other sites

Tinh is right, HyperMesh and HyperMesh Desktop are using different frame.

 

@Jeffersondhv

If you want to correspond both cases, following example can help you.

 

if {[file tail [hm_info -appinfo SPECIFIEDPATH hm]] == "hmopengl.exe"} {
 puts [.mainFrame.bottom.message_icon config -image];
 puts [.mainFrame.bottom.message_label config -text];
} else {
 puts [.mainFrame.bottom.leftfrm.label config -image];
 puts [.mainFrame.bottom.leftfrm.label config -text];
}

Jeffersondhv and Sagar Motwani like this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×