I was trying to develop a NX open code(which runs in batch mode) to export a model from ug part file(*.prt)) to parasolid
process goes like this
1. open part file
2. update expressions from external excel file(here part dimensions will be changed based on the values entered in external excel file which is mapped in the part file expression )
3. save part
4 export to parasolid
5. exit or close
i created a vb journal which does all of this except step 2 . im unable to find nx open/ UFUNC function equivalent to "refresh expression from external excel file
any help is highly aapreciated
There's some code here that deals with NX expressions and Excel files. It probably doesn't do exactly what you want, but might serve as a good starting point. The OP of the thread later deleted his replies, so I look like a lunatic talking to myself, hopefully you can make some sense out of what was going on based on my replies...
If you can get your expressions into an .exp file, then you can use UFModl.ImportExp() which is the wrapper method for UF_MODL_import_exp() to pull them into your part. You can update the model to use the new expressions with either the wrapper for UF_MODL_update() or UpdateManager.DoUpdate().