tlemonds
Aerospace
- Feb 1, 2014
- 20
I am in the need of some kind of script (and thus scripting language) to execute my project but I am a bit overwhelmed by the amount of coding languages NX supports and I don't know where to start. Currently, I am simply trying to write a script that extracts coordinates of a set of points in my part file and exports them to a text file/Excel. I'm trying to extract the coordinates of a wing outline at 8 pre-defined sections along the wing. I've attached a picture and circled some of these points to give you an idea of what I am talking about. I'm familiar with MATLAB and I'm not afraid to learn a new code language but my problem is that I have no idea what scripting language/tool to use! Apparently, NX has its own unique language/interface, GRIP, but also supports scripts written in Python, C++, and VB (maybe even more)? And then I've also heard that Knowledge Fusion may come in use. Is there some kind of convenient language I could use that has commands built in that tie to features within in NX and thus already are set up to request the proper inputs and so forth? If I could at least get a rundown of what my options are then maybe I could begin to pick a method!
P.S. I realize I could manually extract the coordinates rather fast but this process I need to accomplish is only the start of what my project entails. Eventually, I need to be able to feed airfoil coordinates in, create a surface between them, populate ribs (type, # of lightening holes, thickness, material type) within the wing, populate spars within the wing, and more--all with script. I'm basically attempting to build a very detailed parametric wing structural model. Thus, I need to begin to get familiar with some kind of scripting language built into NX because I have a lot to learn/do besides coordinate extraction!
P.S. I realize I could manually extract the coordinates rather fast but this process I need to accomplish is only the start of what my project entails. Eventually, I need to be able to feed airfoil coordinates in, create a surface between them, populate ribs (type, # of lightening holes, thickness, material type) within the wing, populate spars within the wing, and more--all with script. I'm basically attempting to build a very detailed parametric wing structural model. Thus, I need to begin to get familiar with some kind of scripting language built into NX because I have a lot to learn/do besides coordinate extraction!