Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Part families color 3

Status
Not open for further replies.

cubalibre000

Mechanical
Jan 27, 2006
1,070
Is it possible to have different color of of screw part families ?
I would like that some screws are black and others white.

Thank you...

Using NX 8 and TC9.1
 
Replies continue below

Recommended for you

It's possible, using Knowledge Fusion, to control the color of a solid body by linking it to an expression, which you could then drive from the Part Family spreadsheet.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Hi John,
is it possible to have an example of this solution ?


Thank you...

Using NX 8 and TC9.1
 
I would be interested in an example of this as well.

Thank you

NX8 as well
 
There are a few previous posts on this
enter part family color in the search
 
I searched "part family color" and none of the posts explained how this could be done? Can you specify which post?

Thanks
 
You have to do with KF.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
John,
you are part of the Siemens PLM, please search the sample/solution to create PF with different color.
For designer it's important, so they can visibly understand which treatment is used in this PF and decide if change or not, again with True Shading, we have in real time the idea of how the machine become.

Thank you...

Using NX 8 and TC9.1
 
I'm not a KF programmer. I know it can be done since I've seen it done, just that I've never done it myself. I'll try and find an example but at the moment I'm on the road and don't have access to the people who do know how to do this.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
John, I will attend. I've waited for long time....:).

Thank you...

Using NX 8 and TC9.1
 
Hi

This can be done without KF if you are using NX8.5 or above,

Step 1 Define a "dummy" feature associated with the body for each color alternative, for example an associative move with 0 translation. Rename each dummy move feature to the wanted color ex red, green, blue.
Step 2 Right click each dummy feature and choose Assign feature color, and select the desired color.
Step 3 Create a suppress by expression for each of the above features.
Step 4 Create a string expression named color which will be used to choose the parts color in the part family table
step 5 edit each suppression expression to "" if color="desired color" then 1 else 0 ""

There is now have a link between the color of the part body and an expression which is easily edited from the part family table. The only downside is that you have to have a dummy feature in the part navigator for each color.

I have attached a example part demonstrating the above method.
 
 http://files.engineering.com/getfile.aspx?folder=f3630a9f-c6d4-49b1-8268-b7abca693676&file=bolt_master_nx85.prt
Hi petulf,
thank you for the workaround, but I'm using NX8.
I will attend a John response.

Thank you...

Using NX 8 and TC9.1
 
Hi,
Yes it can be done as John already stated.
Sorry i just found this post so quickly created one KF coded part where the part family has an option to control the color (using expression) of each member. (as of now a specific color is associated with each member but you can change it as per your requirement.).

Due to lack of time i have created a very simple cylinder feature but it applies the same to every model you wish to change in terms of appearance).

I am attaching the zip file (containing a demo video file,the part file and a screenshot of the same ..multiple part families member invoked in a single assembly).
While calling in the part you just need to change the color.

Hope this is what the requirement is.

Thanks and Best Regards
Kapil Sharma
 
 http://files.engineering.com/getfile.aspx?folder=502f3e46-d8bd-4e4d-92aa-6a54116aa3d9&file=pf_color.7z
for those who need the KF information ...it can be accessed via KF navigator in resource bar.
Have anice time all of you.
Best Regards
Kapil Sharma
 
Hi Kapil,
thank you. Very interesting.
Can you provide a simple video where demonstrate how to add attribute and ug_body class in KF environment ?

Thank you...

Using NX 8 and TC9.1
 
Kapil,
all it's clear now.
Now I need only to apply your fantastic tutorial/solution.

Thank you...

Using NX 8 and TC9.1
 
Hello

I did proposal petulf and it's working.

"tep 1 Define a "dummy" feature associated with the body for each color alternative, for example an associative move with 0 translation. Rename each dummy move feature to the wanted color ex red, green, blue.
Step 2 Right click each dummy feature and choose Assign feature color, and select the desired color.
Step 3 Create a suppress by expression for each of the above features.
Step 4 Create a string expression named color which will be used to choose the parts color in the part family table
step 5 edit each suppression expression to "" if color="desired color" then 1 else 0 ""

But now I have problem with use this like UDF Feature.
If I try change color directly from part it works.
If I create udf and insert to another file, colors don't change.

 
 http://files.engineering.com/getfile.aspx?folder=cfc226a3-1aa7-4546-84f7-509d102a0e4b&file=SHAP_TT_DEBOUCHANT_PAS_FIN.prt
Status
Not open for further replies.

Part and Inventory Search

Sponsor