Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Assigning Material thru Expressions

Status
Not open for further replies.

Olszowb

Aerospace
Joined
Jan 11, 2013
Messages
11
Location
GB
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
 
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
 
 http://files.engineering.com/getfile.aspx?folder=2d7b0faa-86dc-419e-8ab9-5fba2ace3408&file=Materials.avi
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
 
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
 
 http://files.engineering.com/getfile.aspx?folder=41d0d40c-a3bd-4c73-9b01-6b68eda5db96&file=material.dfa
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.
 
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
 
 http://files.engineering.com/getfile.aspx?folder=073ee612-6bc5-4145-83db-112570a97302&file=material.pptx
Hello,
I followed your ppt, but error occured during adding Child Rule. I am attaching screenshot of error window.
I don't know if it is easy way to adopt this rule into my model. Indeed it seems to be so much complicated then I tought.
 
 http://files.engineering.com/getfile.aspx?folder=91b4025c-0a94-41d0-a310-f50d3596a268&file=MATERIAL.png
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
 
 http://files.engineering.com/getfile.aspx?folder=8f7ac6df-6537-4334-ac90-4c2c44fd4096&file=material.dfa
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
 
 http://files.engineering.com/getfile.aspx?folder=ba4b5270-350a-4c82-9669-3765b1c77f8a&file=my.prt
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
 
 http://files.engineering.com/getfile.aspx?folder=39758aa3-3681-4af3-8171-67bd666dfbdc&file=material.dfa
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top