Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations Ron247 on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using CheckMate to check for existing Flat Pattern then retrieve an attribut

Status
Not open for further replies.

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
 
Replies continue below

Recommended for you

Didier --

Didier said:
1°) Where should appear the information "Part contains a flat pattern"?

This results string will appear in the HD3D Info View by default:

URL]


...and can be configured to appear in other places (tooltips, etc.) as desired:


Didier said:
2°) ...How to display the attribut DXF?

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:
mqc_log( LOG_INFO, flat_ptrn:, "Part contains a flat pattern called: " + dxf_name: + ".")

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:
mqc_askObjectOfType( True, 64, 7);

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)
 
Hi Taylor,

It's exactly where i am looking for this information but "Part contains a flat pattern" doesn't appear

check_mate_b0bwvz.jpg


Regards
Didier Psaltopoulos
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor