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!

Measuring Stock Size 4

Status
Not open for further replies.

Froggy00

Automotive
Jan 21, 2004
8
Is there an easy way to quickly measure the stock size of a solid model in unigraphics?

For example, I want to machine a part to my solid model, and I'll need to identify the minimum block size to use in my bill of material. Other than measuring the distance in the x-y-z direction manually, I'm looking for some quicker way to do this as we have hundreds of components in an assembly.

Thank you!
Allan Lee
Designer
 
Replies continue below

Recommended for you

As far as I know this feature is not availabe in UG MODELING. However in ASSEMBLIES there is product outline that could help but I am not sure if it actually gives u width, length, height. It requires advanced assemblies license which I do not have.


General Information
The outline geometry resides on a layer that is defined by the Assemblies_ProductOutlineLayer customer default. A Layer Category called Product_Outline is automatically created in the displayed part when a Product Outline is defined, and faceted representations of the selected components are created on that layer.

The display properties defined in the Product Outlines dialog apply to all of the geometry on the Product Outline layer, including its solids and faceted representations.

If assembly level geometry is selected, then a message is displayed to let you know that the geometry will be moved to the Outline layer. Show Product Outline toggles the visibility of the Outline layer, which shows or removes the outline from the view.

 
If you know any grip programming, look up the command 'solbox' in the help files. If you don't know grip, post an email address; I have a program that does this (based on the solbox command). The limitations are that the bounding box surfaces are parallel to the principal planes (if you have an odd shape it may not give the minimum bounding box - see the help files). I don't think there is an equivalent command in modeling (which I think is a bit odd).
 
Better yet, I found an old thread:
thread561-52509
This has the grip source of an early version of my program. If you are interested in the latest and greatest version (a few new perks, no new methods or outputs) or don't have access to the grip compiler I'll gladly send the compiled version.
 
Hi Cowski/Allan,

Which program normally you use to compile Grip?

Thanks
 
It should be in your start menu under Unigraphics NX--> Unigraphics Tools --> UG Open Grip.

From there on, it will take you to the DOS running the "GRADE" (GRipe advance developing environment)

You can then compile your code there.

BTW,I tried the code from the thread above and it works out great.

Thank you again Cowski!

Allan
 
Thanks Cowski,

You deserve double star.

Your program works super.

Meantime how to place an icon or short cut execute the grip program in UG

Thanks
 
Hi Derek,

Thanks, Now I have an icon in my UG. It works fine.

Thank you once again.
 
I compiled the grip program and it works fine but how would you make the results go toward the information window instead of drawing them out?
 
After the SOLBOX command add the lines
PRINT/'X: ' + FSTRL(VAL(4)-VAL(1))
PRINT/'Y: ' + FSTRL(VAL(5)-VAL(2))
PRINT/'Z: ' + FSTRL(VAL(6)-VAL(3))
and delete the stuff that adds the dimensions.
 
I should mention that there is a program in the grip library called 'part_envelope' that performs a similar function. I found it only after it I had developed my own version - doh!

Part_envelope will measure from the current wcs where my version only measures from the absolute system - a limitation that may be important to your application.
 
Cowski,

Looked for part_envelope in the grip lib downloaded from ugs. I see part_doctor and part_cleaner but no part_envelope. This utility would be a huge help. Can you point me in the right direction?

Thanks!
t.
tim@rapiddtm.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor