Using CheckMate to check for existing Flat Pattern then retrieve an attribut
Using CheckMate to check for existing Flat Pattern then retrieve an attribut
(OP)
Hi,
NXJockey help me on the previous thread: http://www.eng-tips.com/viewthread.cfm?qid=409519
SO, the following checker works well
________________________________________________________________________________________________________________
#! NX/KF 3.0
#
DefClass: check_for_flat_pattern_and_list_attribut ( %ug_base_checker );
( String ) %test_category: "MyCustomChecks.Modelling";
( String ) %displayed_name: "check_for_flat_pattern_and_list_attribut";
( Boolean Parameter ) Disabled?: False;
( Boolean Parameter ) save_log_in_part: True;
# Attributes for this class
( List Modifiable ) flat_ptrn: mqc_askObjectOfType( True, 64, 7, "lib", "libufmqc", "Name", "mqc_ufkf_askObjectOfType" );
# Checker function
(Any Uncached) do_check:
If ( (-Empty?(flat_ptrn:)) )
Then (mqc_log( LOG_INFO, flat_ptrn:, "Part contains a flat pattern"))
Else (donothing);
_______________________________________________________________________________________________________________________________
I have 2 questions:
1°) Where should appear the information "Part contains a flat pattern"
2°) I have added the following line
( String Modifiable ) dxf_name: ug_askPartAttrValue( DXF );
How to display the attribut DXF ?
Thanks in advance
NXJockey help me on the previous thread: http://www.eng-tips.com/viewthread.cfm?qid=409519
SO, the following checker works well
________________________________________________________________________________________________________________
#! NX/KF 3.0
#
DefClass: check_for_flat_pattern_and_list_attribut ( %ug_base_checker );
( String ) %test_category: "MyCustomChecks.Modelling";
( String ) %displayed_name: "check_for_flat_pattern_and_list_attribut";
( Boolean Parameter ) Disabled?: False;
( Boolean Parameter ) save_log_in_part: True;
# Attributes for this class
( List Modifiable ) flat_ptrn: mqc_askObjectOfType( True, 64, 7, "lib", "libufmqc", "Name", "mqc_ufkf_askObjectOfType" );
# Checker function
(Any Uncached) do_check:
If ( (-Empty?(flat_ptrn:)) )
Then (mqc_log( LOG_INFO, flat_ptrn:, "Part contains a flat pattern"))
Else (donothing);
_______________________________________________________________________________________________________________________________
I have 2 questions:
1°) Where should appear the information "Part contains a flat pattern"
2°) I have added the following line
( String Modifiable ) dxf_name: ug_askPartAttrValue( DXF );
How to display the attribut DXF ?
Thanks in advance
Regards
Didier Psaltopoulos
http://www.psi-cad.fr





RE: Using CheckMate to check for existing Flat Pattern then retrieve an attribut
This results string will appear in the HD3D Info View by default:
...and can be configured to appear in other places (tooltips, etc.) as desired:
https://docs.plm.automation.siemens.com/tdoc/nx/10...
Where would you like to display it?
If you'd like to include it in the results string above, for instance, you could edit your mqc_log() call to add this string into the $message string like this:
CODE --> Fusion
See how that works? The "+" symbol wil concatenate the strings. Pretty easy.
One more quick note... On your mqc_askObjectOfType() call, those last two arguments are system arguments that you can't change anyway, so you can shorten that call to:
CODE --> Fusion
Does that make sense?
Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)
RE: Using CheckMate to check for existing Flat Pattern then retrieve an attribut
It's exactly where i am looking for this information but "Part contains a flat pattern" doesn't appear
Regards
Didier Psaltopoulos
http://www.psi-cad.fr
RE: Using CheckMate to check for existing Flat Pattern then retrieve an attribut
I have found my mistake, I was looking in the wrong level
Thanks a lot
Regards
Didier Psaltopoulos
http://www.psi-cad.fr