×
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

UG GRIP expert opinion for repositioning

UG GRIP expert opinion for repositioning

UG GRIP expert opinion for repositioning

(OP)
I was wondering if anyone knows how to do an object repositioning in UG using GRIP. More specifically, I would like to write the required code in GRIP so I can reposition one object using the CSYS to CSYS. I know how to write and use GRIPs, however I didn't find the dedicated system routine(s) to do the repositioning the way I need.

RE: UG GRIP expert opinion for repositioning

Transformations in GRIP are performed using a transformation matrix.  What you will need to do is determine the matrix that it will take to move something from one reference CSYS to another.  I would start with the matrix command.  Now some this may sound confusing but I found an error in the GRIP documentation, but bear with me on this one.

Open the User Documention and go to the NX/Open section and search on both 'transform' and 'matrix' and review some of the pages there so that you can become familiar with how this works.  Now you will need to create a matrix representing the destination CSYS, so now search on 'coordinate system' and select the reference titled 'Coordindate System'.  Now here's teh confusing part, even though the page is labled correctly and it does talk about how to get the matrix values of a CSYS, the illustration of the example is all wrong, but don't dispair as I found it.  So after reviwing (printing out the page) now go and search on 'lnarrw' (trust me, this will take you to where you need to go).  When the search results come up select the SECOND 'Line Between Arrows Example' reference (I said it was confusing, but we're almost there) and you will find the missing illustration of the CSYS matrix example.

Anyway, this should get you going in the right direction, once you figure out where the proper illustrations are located winky smile

BTW, I've opened a PR to fix the illustrations and since this is just a 'Cut & Paste' job, it shouldn't be a problem.

John R. Baker, P.E.
Product 'Evangelist'
UGS NX Product Line
SIEMENS
UGS PLM Software
Cypress, CA
http://www.siemens.com/ugs
http://www.plmworld.org/museum/

RE: UG GRIP expert opinion for repositioning

(OP)
Hi,
Thank you for your feedback. I have to tell you that I know about transformation matrices in GRIP. The problem I have though is that I don't need to do just a simple translation but a repositioning which implies also rotations. While the translation values are not difficult to calculate (between two CSYS) and in consequence to create the Translation Matrix, the difficulty appears when I need to obtain the rotations between the two CYCS. I know that you can create a Rotation Matrix and a combination of matrices. But how do I "read" the angular position o the new CSYS without going to complicated calculations for Euler angles and so on? I was hoping that there is a short-cut in GRIP to emulate the CSYS to CSYS reposition (similar to how normally this is done in UG: through EDIT/Transformation/Reposition/CYCS to CYCS).

RE: UG GRIP expert opinion for repositioning

OK, this might look like killing flies with a sledge hammer, but give it a shot.

First perform an EXPORT, to a dummy part file, of the object(s) you wish to transform relative to CSYS1, then IMPORT said dummy part file back in relative to CSYS2.

Just search on 'export' and 'import' to find all the relavent information for the 'Export Part' and 'Import Part' commands.  If you wish to perform a MOVE instead of a copy, you will have to delete the original objects after the EXPORT.  Also, don't forget to delete the dummy part file out on the disk before you exit the program.

This is probably to easiest solution to your problem.

John R. Baker, P.E.
Product 'Evangelist'
UGS NX Product Line
SIEMENS
UGS PLM Software
Cypress, CA
http://www.siemens.com/ugs
http://www.plmworld.org/museum/

RE: UG GRIP expert opinion for repositioning

(OP)
Thank you again!

I will try this method soon. It looks that is going to work by looking to what is the synopsis for the CPATT and RPATTsmile

RE: UG GRIP expert opinion for repositioning

(OP)
I have checked the repositioning method using CPATT and RPATT. It works great!

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