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
then i start NX11 to run the PatternCurveUI.dll.
Provided inputs as indicated in dialog. clicked the Apply button.
and this happened:
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?
Solved! Go to Solution.
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.
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.
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.
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.
I finally found the reason .
I didn't write my own application directory to UGII\menus\ug_custom_dirs.dat.
How fool i am.
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?