×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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



Regards
Didier Psaltopoulos
http://www.psi-cad.fr

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

Didier --

Quote (Didier)

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

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...

Quote (Didier)

2°) ...How to display the attribut DXF?

Where would you like to display it? smile

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

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 --> Fusion

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)

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

(OP)
Hi Taylor,

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

(OP)
Hi Taylor,

I have found my mistake, I was looking in the wrong level



Thanks a lot

Regards
Didier Psaltopoulos
http://www.psi-cad.fr

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources