Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

How to control the color of an NX object by editing an Expression... 2

Status
Not open for further replies.

JohnRBaker

Mechanical
Jun 1, 2006
35,347
2
38
US
A request for this was made some time ago in this forum and so I've prepared a Word document (see attached) which describes the procedure for using KF (Knowledge Fusion) to create a way to control the color of an NX Solid Body (or a Sheet body or even the Face of a Solid/Sheet Body) by editing the value of an Expression. Note that you will need an KF license to utilize this procedure but once the part file has been created and the KF expression created and linked to the NX object, you no longer need a KF licence to use the file and control the color via the Expression.

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.
 
So that you can see how this works, I've attached an example part created using one of the these KF enabled 'color' expressions linked to the solid body. The model was created in NX 5.0 so most of you should be able to 'test-drive' this part file. Just remember that you can only enter a value for the expression 'Object_Color' of 1 thru 216, the maximum number of NX colors. The color assignment will be based on the CDF file assigned to the part file.

Anyway, have fun ;-)

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.
 
 http://files.engineering.com/getfile.aspx?folder=da764fae-e5f9-4cb6-863a-5990c68d5d53&file=Example_Part_Expression_Controlled_Color.prt
John this worked beautifully and was something I was looking for. Great post, THANKS!

Do you have anything like this on Cloning parts from a custom library???
That's something I really need to figure out and I know that KF supports it.

I would like to be presented with a re-naming field or maybe just be able to set a re-naming prefix or suffix?? Something on the simpler side with a bunch of gingerbread.

I sure I'm stretching on this type of request tho...

TIA

Dave
 
WITHOUT a bunch of gingerbread that is.

Dave
Automotive Tooling / Aircraft Tooling / Ground Support Structures

NX9, Win 7 Pro SP1
 
Not really. I'm not a KF expert. The object color thing was something I got from someone else.

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.
 
Where did the first attachment go?

Anyway, here it is again.

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.
 
 http://files.engineering.com/getfile.aspx?folder=5e78f114-f593-417f-8e8a-9a70791ee78c&file=Controlling_the_color_of_an_NX_Object_using_an_Expression.docx
That's OK... I'm close to getting it settled. There was a post on here with a part here that had data attached.

I'm a good copy cat.

Have a good weekend!

Dave
Automotive Tooling / Aircraft Tooling / Ground Support Structures

NX9, Win 7 Pro SP1
 
Status
Not open for further replies.
Back
Top