Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

GRIP PROGRAM EDITING

Status
Not open for further replies.

UGMENTALCASE

Aerospace
Joined
Oct 10, 2011
Messages
123
Location
GB
Morning all,

I have done some searching and found a GRIP Program, that will take the part name of an NX file, and assign it to the attribute DB_PART_NAME. I'm completely hopeless at this sort of thing, so please go easy on me! How would i edit the GRIP Program so it assign the NX File name to the atribute DD_PART_NO, and DB_REV_NAME. I appreciate they may have to be different programs. I'm using NX 7.5, I can execute GRIP programs, but my only knowledge of editing certain programs/scripts is via text editer or similiar.

Your help would be greatly appreciated. Attached is the original file from John Baker (Thanks John for this it's amazing!) The files we have already have these attributes in them as default.

Cheers
 
 http://files.engineering.com/getfile.aspx?folder=ba55c0f2-0520-45f3-8ee5-1fb30e3ec921&file=programs_grip.zip
You can set multiple attributes from a single GRIP program.
If the one you have sets the current part name to DB_PART_NAME and you need it set to DD_PART_NO, then just edit the <program_name>.grs file in a text editor, notepad or wordpad, and change DB_PART_NAME to DD_PART_NO. For DB_REV_NAME, what system variable are you reading to get that value?
AFter you have modified the program, you need to run GRADE and compile and link the GRIP program into an executable <program_name>.grx file.


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
Attached is a copy of the updated GRIP program per your request.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
 http://files.engineering.com/getfile.aspx?folder=9784380d-11fe-42fa-bbf5-034e4cafc220&file=update_att_all_files-1.zip
Awesome thanks so much for the help! I've found the file which throws up the CMD box, but i get a license error. So we are 40% there I'd say! Again thanks for the help it's most appreciated. Is using the NX tool the only way you can get the .grx files?

Cheers
 
Forgot to say @looslib, the REV name thing is part of the customer requirement. It fills out certain parts of the title block and or BOM.
 
Yes, the .grx files are the GRIP executables and you do need a license to execute GRIP programs. And yes, UG/NX is the only application that can execute GRIP programs.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top