Custom Functions in NX
Custom Functions in NX
(OP)
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
function(n)
Input:
n - desired length
Output:
constant*round(n/constant)
Thanks,
Scott





RE: Custom Functions in NX
RE: Custom Functions in NX
You can see this command with Ctrl + E
You can use expreesiones to sketch, wipes, patterns and more.
RE: Custom Functions in NX
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
RE: Custom Functions in NX
Kenevil,
User-defined functions can be called from the NX Expressions dialog.
See https://docs.plm.automation.siemens.com/tdoc/nx/10/nx_api/#uid:hsg_lang_hsg_ufun (Example #2) to get started.
HTH,
Joe
RE: Custom Functions in NX
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)