×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Grip help with UGMGRE & UGMGRD requested

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

RE: Grip help with UGMGRE & UGMGRD requested

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

RE: Grip help with UGMGRE & UGMGRD requested

(OP)
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.

RE: Grip help with UGMGRE & UGMGRD requested

What happens with your code? does it give an error or just wrong results? Maybe you can post your code snippet of interest.

RE: Grip help with UGMGRE & UGMGRD requested

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

RE: Grip help with UGMGRE & UGMGRD requested

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources