×
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

Assigning Material thru Expressions

Assigning Material thru Expressions

Assigning Material thru Expressions

(OP)
I'm wondering if it is possible to assign material by using some parameter in Expressions, then changing material by changing specified parameter.
Example:
I create a parameter for the body material and if this parameter is "1" body is made of Brass, otherwise is made of Steel.
I'm using NX7.5

Thanks

RE: Assigning Material thru Expressions

Hi Olszowb,
Although i am not sure if this is directly possible but if in case you are interested i am furnishing an example using NX Knowledge Fusion.I am attaching a video file herewith.That being said i have created this in NX8 and hopefully this should run in NX7.5 also.
Do let me know if this is what you have in your mind.(i have controlled the material value=Bronze for expression test=1 and STEEL for any other value of test.Offcourse the possibilities of customizing the range of values are good here...but needs time and effort :).
Best Regards
Kapil Sharma

RE: Assigning Material thru Expressions

(OP)
Hello Kapil,
You've done exactly what I need. Video proves it, but I've never used NX KF, so I don't know how to set up anything to acheive success. Can you guide me thru this?
Regards
Blaze Olszowy

RE: Assigning Material thru Expressions

Hi Olszowb,
Will you be able to help your way out if i send you the dfa code (K.F) of the same? Let me know.I am attaching the dfa code herewith.(hopefully you might be able to run it on NX7.5 )
Just make an expression with name of test and import the dfa....It should do..
Best Regards
Kapil Sharma

RE: Assigning Material thru Expressions

(OP)
Unfortunately DFA import is not working for me. I don't know if I'm doing this right way - I imported file you send me thru DFA Manager. I don't have any material attributes in Displayed Part Properties.

RE: Assigning Material thru Expressions

Hi Olszowb,
Here you go.I am attaching a ppt herewith.Details are there in it.First of all create an expression test in the part file you wish to control the material attribute.
Then call the dfa (as depicted in the ppt).
Please note that as of now the test expression value takes a number value (and the logic i have kept is very simple)....but you will find that you can go for a complex logic too here....
Best Regards
Kapil Sharma

RE: Assigning Material thru Expressions

Hi Olszowb,
:) it is quite simple and once you get used to it you will surely love it..... Sorry i was my fault...actually the cod ei have written was for NX8.0 and the function error you got is not there in NX7.5 and it is there in NX8.0
But now i have replaced this with something that is there in NX7.5 (Hopefully... i have no NX7.5 to test it now).So use this attached dfa (in the same manner you used it before and let me know).

This time it should work.
Best Regards
Kapil Sharma

RE: Assigning Material thru Expressions

(OP)
Hi kapmnit,
I used last DFA file that you sent to me and it loaded successfully, but when I want to play with 'test' parameter in Expressions, nothing happens. Material attribute is still Bronze no matter what is the value of 'test' parameter. I'm appending you my test PRT file. Maybe you could figure out what is wrong with that. It is out of my skills :(
Regards
Błażej

RE: Assigning Material thru Expressions

HI Olszowb ,
You are still using the older version of the dfa.(i noticed after seeing your part).Please create a new part ,create an expression Test and invoke this dfa (which i am attaching this time..remove the earlier dfa).Wish you luck this time.
Best Regards
Kapil Sharma

RE: Assigning Material thru Expressions

Hi Olszowb ,
One more thing.Please right click in the KF navigator before adding the child rule and do al RELOAD ALL.
Regards
Kapil Sharma

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