Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Grip help with UGMGRE & UGMGRD requested

Status
Not open for further replies.

Shadowspawn

Aerospace
Sep 23, 2004
259
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...
 
Replies continue below

Recommended for you

GRIP does not interface with Teamcenter. Those commands look like UG/Open API calls, which does work with Teamcenter.


"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
 
Looslib,
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.
 
What happens with your code? does it give an error or just wrong results? Maybe you can post your code snippet of interest.
 
Okay, GRIP can get the file name from Teamcenter. I don't use Teamcenter, so I was unaware of the commands.

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
 
Cowski,
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor