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 TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expression values compare = within a tolerance value, NX11

Status
Not open for further replies.

3dr

Automotive
Joined
Jul 10, 2004
Messages
456
Location
US
I need to be able to compare 2 expressions and report whether they are within a specified tolerance.

For now that reporting result can be numeric. 911 would work fine.

I've found that "bounding bodies" used for measurement and reporting to a parts list sometimes loose associations.
Having this in place for parts coming out of a library would provide some degree of quality control.

Does anyone have a solid method for doing this?

Greater than and less than logic is a heavier weight solution than it first appeared to be.

"ug equal" seems like it might be a fit but I'm not sure what it's supposed to do.

I managed this string and it's not in an error state.
ug_equal( L_ACTUAL, PLG_L, "tol", ERROR_DEV )

But this is my limit.

Dave
Automotive Tooling / Aircraft Tooling / Ground Support Structures

NX9, Win 7 Pro SP1
 
Are you just looking for something simple like this?

[pre]if ( abs(exp1 - exp2) < 0.0001 ) then (1) else (911)[/pre]

[If the absolute value of the difference between exp1 and exp2 is less than the tolerance, then 1, else 911.]

Does that get you there?

Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)
 
That has application but I've got "ug_equal" working and it's doing a good job for me.

Dave
Automotive Tooling / Aircraft Tooling / Ground Support Structures

NX9, Win 7 Pro SP1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top