i have a grip file (.grx) and i want to edit a line, i don't have the source file, is there a way of converting it back into a (.grs) so i can edit the code?
The short answer is that you don't. The .GRX is an executable file. the source file which is just an ASCII text file is called a .GRS file. That file is taken and complied using a utility that is supplied as part of the GRIP Development license that is purchased separately and in addition to the GRIP Executable license that many users have more commonly with their bundles.
thanks Hudson,
so i can't use the "NX open grip" program then,
So which program do i need,this is a big company with lots of licences, if i know what to look for i should be OK..
To find the compiler, (make sure you have one).
In Windows from the desktop Start>Programs>UGS-Version)>NX Tools>NX Open Grip.
First you need to create your grip programs by editing the code in a text editor, wordpad will do fine, and save them with the .grs extension. To start creating grip programs look in your installation directories for on called griplib. This was distributed up to NX-3 and contains a collection of good sample programs that will help you get started.
When considering that after NX-4 the grip library has disappeared it is because Grip is a dying language. New users starting to learn some programming for NX would probably be better off starting to use Visual Basic with NX-5.
thanks, but i have got GRADE but what i need to do, is extract the source code from the grip program i have , so i can edit it, so i need to convert .grx back into .grs
Extracting the source from .GRX back to .GRS isn't something that is either supported or meant to happen. In part being able to compile your programs makes them run faster better etc.., but another key point id that it protects the source, which is after all the author's intellectual property.
If you're willing to let us know what the program is and does we may be able to suggest a viable alternative> Otherwise look to see whether sample programs are available that are similar enough to be reworked similarly easily to meet your needs.
its a good little grip someone gave me, "copy all loaded files", when you run it, it shows where they're gonna go, so you have to type in your location, i just wanted to point it to a specific folder on my computer, by editing the code
I don't know of a grip program that does that specific thing but I can see how it might work. Keep looking at let us know if you find something, as it may be useful to others.
Have a look at the link below. There is a freeware utility that you can download and run from within UG. You need a UFUNC License for this one, and I haven't re-tested it under NX-4 or NX-5 yet. What it does is use load options in native to collect the files under your assembly and zips them up for you.