Grip help with UGMGRE & UGMGRD requested
Grip help with UGMGRE & UGMGRD requested
(OP)
I'm trying to find a way to utilize prt files within Teamcenter in a grip program. I need to come up with a way to update patterns on existing drawings, but the new patterns (part files containing the patterns) are in Teamcenter. I'm thinking that the functions UGMGRE and UGMGRD can get me access to those parts files, but I can't seem to figure out (through much trial and error)how to get them to work. Does anyone here have experience with these, or a snippet of code they would be willing to toss my way? I'd be forever greatful and generous with the ever elusive purple kudo's. 
Thanks much in advance for any help you can provide...
Thanks much in advance for any help you can provide...





RE: Grip help with UGMGRE & UGMGRD requested
"Wildfires are dangerous, hard to control, and economically catastrophic."
"Fixed in the next release" should replace "Product First" as the PTC slogan.
Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand
RE: Grip help with UGMGRE & UGMGRD requested
Teamcenter is just the pdm tool, the files are still accesed via UG. The grip file still runs through UG, but needs a way of encoding or decoding the partfile names as they are named by Teamcenter (or UGMAN or IMAN...same thingy), which is an Oracle db. The UGMGRE and UGMGRD calls simply encode or decode the db naming convention into a 'native mode' naming convention (or vice versa). I just can't seem to get it to work for all of my efforts. Open/API calls shouldn't be necessary to convert the file names, or so I gather from reading the online docs. I've searched GTAC with very limited success, and was hoping one of you code slingers here would have the answers...
Thanks for your time anyway.
RE: Grip help with UGMGRE & UGMGRD requested
RE: Grip help with UGMGRE & UGMGRD requested
Did you read the caution about string lengths. While the length of the individual strings may exceed 50 characters, there is a 50 character limit on the total of the part number, part rev and part filename strings.
"Wildfires are dangerous, hard to control, and economically catastrophic."
"Fixed in the next release" should replace "Product First" as the PTC slogan.
Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand
RE: Grip help with UGMGRE & UGMGRD requested
I just wanted to let you know that I haven't blown you off, I've just been real busy at work. I intend to come in over the holidays and see what I can do with the code, and post what I manage to come up with...working or not. Until then....happy holidays!
SS