Showing results for 
Search instead for 
Do you mean 
Reply

Opening a part externally

How do you open a part in an external version of nx?

I keep getting this exception when i try it.

Is there something unique about this?

Also I know not to use the method that sets it to the display part
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

2 REPLIES

Re: Opening a part externally

 

That error looks like it is related to the way your program was built.  If it is NX9 or later, you must build it as x64, not 'any cpu'.

 

In most cases, you DO want to make a loaded part the displayed part, even in an external program, or a lot of the API calls will fail - many depend on having a displayed part.  I realize nothing is actually displayed in batch mode, but NX considers a part loaded as the displayed part to be displayed anyway.

 

Re: Opening a part externally

Ahh...okay..Thank you.