Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

how to write a NX GRIP code for obtaining the dimensions of the surface of a solid body? 1

Status
Not open for further replies.

atulz

Mechanical
Joined
Oct 29, 2014
Messages
15
Location
IN
what should be the NX GRIP syntax for obtaining the size/dimensions of a selected surface?
 
I have a grip program that will determine the size of an object based on the orientation of the current wcs. It will select any separate object but not a face on a solid, rather it will pick the entire solid itself. If the individual face needs to be measured it could be temporarily extracted and measured that way.

This grip program was written over twenty years ago when a call to gtac indicated there was no such direct measurement function in grip.

It works by placing planes out at 10,000 units from each axis (John Baker can explain this limitation), measuring the minimum distance from the object to these planes then doing the math to find out the object size, again based on the orientation of the current wcs. There should be an nxopen command that can do this directly.
 
Again, I have to ask, why the insistence that you write this in GRIP? You'll have better luck using the NX Open API.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
I'm very thankful for the reply.
I am developing the GRIP program for solid modeling of different configurations of fins. For this reason I need to know the size of the selected surface, where I'm drawing the fins.
NX open API also there but the program size becomes very big. that's why I'm using nx grip program.
Could you please send me the nx grip syntax for obtaining the size of the geometry?

Thanks & Regards.
 
I totally agree with you John. Grip was grandfathered into our licenses, and a crow bar with a cheater on it couldn't open our corp wallets far enough to afford a snap license even with it being more capable. It's totally frustrating to be trapped in this mindset but you work where you work.
 
multicaduser said:
...couldn't open our corp wallets far enough to afford a snap license...

SNAP does make the programming easier, but you can write and run journals with a base modeling license.

www.nxjournaling.com
 
When you say 'size' do you mean 'Surface Area'? If so, there might be a GRIP command that could be used to return that value. However, if you're talking about something like the perimeter, length of the sides, locations of the corner points, etc, then NO, there are NO GRIP functions which will return those values.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Yes sir, for obtaining the 'surface area'.
thanks.
 
What version of NX are you running?

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
The title of this thread states "...obtaining the dimensions of the surface of a solid body?"

Are you saying the 'Face' of a Solid Body or a standalone 'Surface'?

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
I'm using NX 9.0 version. for surface of a body.
thanks
 
I want the code for "face of a solid body".
 
What do you mean by the "surface of a body"? Do you mean one of the 'faces' of the Solid?

BTW, where did you get your training in NX? In fact, where did you get your copy of NX?

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
I got the NX copy from my college. Also training from college itself.
yes sir, one of the faces of a solid body.
 
So you are a 'student' correct? And you say that "I got the NX copy from my college."

Do you mean that literally, that YOU HAVE A COPY OF NX THAT YOU ARE RUNNING ON YOUR OWN PERSONAL COMPUTER? And somehow this was provided to you by your college, correct? Where do you go to school?

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
> couldn't open our corp wallets far enough to afford a snap license

Wow. Your coffers are really tight. I think a SNAP license is only about $2K. Even less if you're nice to your salesman.
 
BubbaK

>You shouldn't be writing GRIP programs if you're under 40 years of age smile

Haven't seen 40 in over a decade (yes the above is snipped from a different thread). Taught myself grip on my own time when paper manuals were still provided and a heavy duty book shelf was required to hold them. LOL Started out on NX when it was still UGII v6 several years ago on a VAX system tied to nine users who would complain bitterly when you had to run a fixed axis contouring routine during the day because batch at night didn't produce the right results. John Baker will know more about this than I do.
 
@multicaduser

I can't even remember when I was 40, and I have written plenty of GRIP programs in my time, too. But that was then, and this is now. Try writing SNAP code in Visual Studio or any other IDE with "intellisense", and you'll see that GRIP is very very far behind the times. It's time to learn some new tricks, even for old dogs like me and you.
 
I suspect that our 'student' won't be back. I think my questioning as to how he/she got their copy of NX has scared them away. I can't help but feel that the manner in which it was acquired was not exactly Kosher. And while the discussion concerning our individual experiences with GRIP has been interesting, if I don't get a satisfactory answer to my questions about the pedigree of the OP's copy of NX I'm going to ask the powers-to-be to remove this and the other thread initiated by the OP.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top