Cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the max. value in c#? Which command

Experimenter
Experimenter

I need the right command in my c# enviroment for the max. stress value of my NX model. Here is one link: https://docs.plm.automation.siemens.com/data_services/resources/nx/11/nx_api/custom/en_US/open_java_...

 

but i can not find something. Has somebody an idea to get the maximum stress value in c#? At the post processing window i see the colorbar and the annotation but how can i read this in c# - NX OPEN Thank you in advance.

1 REPLY

Re: How to get the max. value in c#? Which command

Solution Partner Experimenter Solution Partner Experimenter
Solution Partner Experimenter

If you are working in C# then the .net reference will be more helpful than the java docs.

 

https://docs.plm.automation.siemens.com/data_services/resources/nx/12/nx_api/custom/en_US/nxopen_net...

 

If you want the max stress value you will probably need to do some analysis to get stress data. Assuming the stresses are in a list you could do something like this to get the max value.

using System.Linq;
using System.Collections.Generic;

int Max = list.Max();

 

edavis, NX Application Engineer, Applied CAx, LLC
Production: NX12
Development: C#, tcl