×
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

Part families color
3

Part families color

Part families color

(OP)
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

RE: Part families color

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.

RE: Part families color

(OP)
Hi John,
is it possible to have an example of this solution ?

Thank you...

Using NX 8 and TC9.1

RE: Part families color

I would be interested in an example of this as well.

Thank you

NX8 as well

RE: Part families color

There are a few previous posts on this
enter part family color in the search

RE: Part families color

I searched "part family color" and none of the posts explained how this could be done? Can you specify which post?

Thanks

RE: Part families color

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.

RE: Part families color

(OP)
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

RE: Part families color

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.

RE: Part families color

(OP)
John, I will attend. I've waited for long time....smile.

Thank you...

Using NX 8 and TC9.1

RE: Part families color

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.

RE: Part families color

(OP)
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

RE: Part families color

I assume there is no workaround for us using NX8?

RE: Part families color

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

RE: Part families color

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

RE: Part families color

(OP)
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

RE: Part families color

(OP)
Kapil,
all it's clear now.
Now I need only to apply your fantastic tutorial/solution.

Thank you...

Using NX 8 and TC9.1

RE: Part families color

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.

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