Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Locking Expressions?

Status
Not open for further replies.

MTPatECT

Mechanical
Oct 20, 2011
4
Is anyone aware of a way to lock an expression in NX 7.5 so that it is not editable. For example:

Lets say you want to use an equation to create a curve (parabola, circle, etc...). You want the expression which has the formula to create the curve to be locked and uneditable, but you still want to be able to edit the input variables (separate expressions).

Any ideas?

Thanks
 
Replies continue below

Recommended for you

If the input is separate from the equation, do you still need to lock it? Is the goal to prevent unintentional edits or is it to hide proprietary data?

My first thought was using a separate file for your equation expressions and using inter part links to reference them into your work file, but I'm not sure that will get what you want.
 
MPTatECT,

The attached part has one "input" expression, p1, a locked expression "my_locked_exp" that uses the input expression p1 as part of the formula. And it has expression p2 which uses "my_locked_exp as part of its formula.

my_locked_exp is a ug_expression KF child rule with lockRule set to TRUE.

In the Tools ->Expression dialog and in the Part Navigator the "my_locked_exp" is not editable.

The example expression is quite simple but it should meet the requirement for being able to define the expression to be used for a curve by equation where that expression is not directly editable but still can react to other expression edits.


Hope this helps,
Joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor