Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Custom Functions in NX

Status
Not open for further replies.

Kenevil

Automotive
Apr 2, 2013
47
0
0
US
Can I create a custom function in NX? Maybe a function isn't the proper method but I want to apply the following calculation to multiple sketch dimensions with unique inputs.

function(n)

Input:
n - desired length

Output:
constant*round(n/constant)

Thanks,
Scott

 
Replies continue below

Recommended for you

with this command you can set up operations and use Boolean for comparison

You can see this command with Ctrl + E

You can use expreesiones to sketch, wipes, patterns and more.
 
Yes I've used expressions. Assume "constant" is an expression. In my sketch, I have to type the follow formula...

Constant*round (12.6/Constant)

12.6 is just a number I made up but it will always be different. I want to create a formula so I can just type. ..

MyFunction (12.6)

It's like a reusable expression or formula

 
Kenevil --

One of the examples I posted in your other thread related to this topic is actually a rounding example similar to this. Take a close look rounding_examples.dfa inside the zip file. :)

Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Product Engineering Software
Siemens Product Lifecycle Management Software Inc.
(Phoenix, Arizona)
 
Status
Not open for further replies.
Back
Top