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 JAE on being selected by the Eng-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
Joined
Apr 2, 2013
Messages
47
Location
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

 
I do not know if I understand your question, but Have you tried using expressions? [ponder]
 
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.

Part and Inventory Search

Sponsor

Back
Top