Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

edit a grip file

Status
Not open for further replies.

moog2

Mechanical
Jan 16, 2007
441
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?
 
Replies continue below

Recommended for you

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.

Best Regards

Hudson
 
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..
 
You need GRADE Grip Advance Development License.

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.

Best Regards

Hudson
 
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.

Best Regards

Hudson
 
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.


I don't believe that it would or could work under teamcenter.

Best Regards

Hudson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor