cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Custom Feature using NXOpen

Valued Contributor
Valued Contributor

Hi,

How to create a custom feature using NXOpen APIs in NX 11.

I have seen create custom feature topic in What's new page. 

 

Please provide some examples.

 

https://docs.plm.automation.siemens.com/tdoc/nx/11/nx_help/#uid:index_whatsnew:xid830716:xid1096414

 

Thanks,

Selvaraj C

NX Automation Engineer

NX 9 | NX 11

Selvaraj C
CAD Automation Engineer
NX 9 | NX 11 | Teamcenter 10
6 REPLIES

Re: How to create Custom Feature using NXOpen

Siemens Phenom Siemens Phenom
Siemens Phenom

 

Good news - there are examples already loaded with NX 11!

 

Navigate in your NX 11 folders to this location:

 

...\UGOPEN\SampleNXOpenApplications\C++\CustomFeatures

 

There are six examples there.

 

 

Re: How to create Custom Feature using NXOpen

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

What is the difference between a User Defined Feature (UDF) and the new Custom Feature intriduced in NX11 ?

 

Thanks.

 

Elias.

Re: How to create Custom Feature using NXOpen

Valued Contributor
Valued Contributor

Thanks for your reply.

I could not able to compile the sample codes due to un availability of following header files.

 

#include <pk.h>
#include <pk_ifails.h>
#include <pk_tokens.h>

 

Where can I get these header files?

 

Thanks,

Selvaraj C

NX Automation Engineer

NX9 | NX 11

Selvaraj C
CAD Automation Engineer
NX 9 | NX 11 | Teamcenter 10

Re: How to create Custom Feature using NXOpen

Siemens Phenom Siemens Phenom
Siemens Phenom

Selvaraj,

 

I was out of the office for a couple of weeks, so I just saw your question today - I'm very sorry for the slow response.

 

Those pk* headers are part of the Parasolid Toolkit, and that is a completely separate product from NX.  I am very surprised that we have supplied example programs that require these headers without making a very clear comment in the example code to explain this.

 

Please contact your local GTAC office and report this so that we can ask development to make this much more clear.

 

Thank you!

 

Best regards,

 

Steve

 

Re: How to create Custom Feature using NXOpen

Valued Contributor
Valued Contributor

Thank you for your information. I'll contact GTAC office.

Selvaraj C
CAD Automation Engineer
NX 9 | NX 11 | Teamcenter 10

Re: How to create Custom Feature using NXOpen

Siemens Legend Siemens Legend
Siemens Legend

>> What is the difference between a User Defined Feature (UDF)

>> and the new Custom Feature intriduced in NX11?

 

At high level:

 

UDFs are created interactively, display a UDF icon in the Part Navigator, and display the standard-format UDF dialog when edited.

 

The NX Open Custom Feature is created programmatically, displays an icon of your choice in the Part Navigator, and uses a custom block-based dialog created by the author of the feature.

 

For an avid NX Open programmer, the examples mentioned should give a pretty good idea of the various types of features that can be created using this new mechanism. 

 

Does that help?

Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Tel: +1 (602) 441-0683
taylor.anderson@siemens.com