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

Grip help with UGMGRE & UGMGRD requested

Grip help with UGMGRE & UGMGRD requested

Grip help with UGMGRE & UGMGRD requested

   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

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

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

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!


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! Already a Member? Login


eBook - Integrating the Engineering Ecosystem
Aras Innovator provides multiple options for integrating data between systems, depending on the scenario. Utilizing the right approach to meet specific business requirements is vital. These needs range from authoring tools, federating data from various and dissimilar databases, and triggering processes and workflows. Download Now
Research Report - Simulation-Driven Design for SOLIDWORKS Users
In this engineering.com research report, we discuss the rising role of simulation and the paradigm shift commonly called the democratization of simulation. In particular, we focus on how SOLIDWORKS users can take advantage of simulation-driven design through two analysis tools: SOLIDWORKS Simulation and 3DEXPERIENCE WORKS. Download Now
White Paper - Industry 4.0 and the Future of Engineering Education
With industries becoming more automated, more tech-driven and more complex, engineers need to keep their skills and knowledge up to date in order to stay on top of this wave—and to be prepared for the Industry 4.0 future. The University of Cincinnati offers two online Master of Engineering degree programs designed specifically for practicing engineers. Download Now
eBook - The Design Gridlock Manifesto
In this eBook, you’ll learn 6 ways old CAD technology slows your company down and hear how design teams have put those problems to rest. “The Design Gridlock Manifesto” shares first-hand modern CAD experiences from 15 companies around the world. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close