cancel
Showing results for 
Search instead for 
Did you mean: 

PROBLEM, NX11 CustomFeatures EXAMPLE. PatternCurve

Experimenter
Experimenter

HI,all.

I Compiled the two PatternCurve  source files which  

located in ...\UGOPEN\SampleNXOpenApplications\C++\CustomFeatures\PatternCurve.

 

then i put these four files(picture below) in $UGII_USER_DIR/application

1.png

 

then i start NX11 to run the PatternCurveUI.dll.

 Provided inputs as indicated in dialog. clicked the  Apply button.

and this happened:2.png

 

 

 

it seems the Core.dll doesn't work.

i didn't see any load library operation in the PatternCurveUI source code.

should i write one?

if i should do so ,what's the CustomFeatureConfiguration.xml doing?

please help!

thanks!

9 REPLIES

Re: PROBLEM, NX11 CustomFeatures EXAMPLE. PatternCurve

Legend
Legend

Did you realize that the count box is actually an expression and the default setting for it is zero.  If you have simply changed the input to a number the program would still use the expression (which would still have a zero value).  Hence an error.  Try running the program again and before you select Apply chang the expression d1Count to a non-zero value.

 

Frank Swinkels

Re: PROBLEM, NX11 CustomFeatures EXAMPLE. PatternCurve

Experimenter
Experimenter

thanks for reply.

i tried.

problem still.Man Sad

Re: PROBLEM, NX11 CustomFeatures EXAMPLE. PatternCurve

Legend
Legend

Yes I also have a problem.  My first look at this was to look at the code and it seemed to me that an expression was created.  But of course the expression is not available until a feature is created which as you found is never available until a feature is created.  I am interested to look further and will let you know what I find.

 

Frank Swinkels

Re: PROBLEM, NX11 CustomFeatures EXAMPLE. PatternCurve

Legend
Legend

OK I got it to work fine.  I placed the dll, the dlx and the xml in my application directory.  Also make sure the names are correct.

 

Image1.jpg

 

 

 

Frank Swinkels

Re: PROBLEM, NX11 CustomFeatures EXAMPLE. PatternCurve

Experimenter
Experimenter

did you change the source code ?

Re: PROBLEM, NX11 CustomFeatures EXAMPLE. PatternCurve

Legend
Legend

Although I looked through the source code I did not see anything untowards so I basically compiled and linked the programs and placed all files in my application directory.  Just one further thought did you run the program in the application directory?  I did.

 

Frank Swinkels

Re: PROBLEM, NX11 CustomFeatures EXAMPLE. PatternCurve

Experimenter
Experimenter

Thanks man.

I finally found the reason .

I didn't write my own application directory to UGII\menus\ug_custom_dirs.dat.

Smiley LOL How fool i am.

Re: PROBLEM, NX11 CustomFeatures EXAMPLE. PatternCurve

Experimenter
Experimenter

Hello FrankSwinks,

I have the same error message ("Unable to Create Body"). I moved all the dll and dlx files in the session folder, but I don't have idea what the the problem is. Could you send me your compiled dll and xml files? 
Tank You!

Re: PROBLEM, NX11 CustomFeatures EXAMPLE. PatternCurve

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor
You need to place all four files in $UGII_USER_DIR\application folder. Ensure that dll names match to that in XML.
SE-Advanced
Siemens Industry Software