PSI-CAD
Computer
- Feb 13, 2009
- 997
Hi,
NXJockey help me on the previous thread:
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
NXJockey help me on the previous thread:
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