Showing results for 
Search instead for 
Did you mean: 

Difficulty in processing expressions

Siemens Pioneer Siemens Pioneer
Siemens Pioneer

Using NX10.

I am using ExpressionCollection on the Work Part to iterate through all expressions.


Ideally I would like to process expressions that are editable, and have units.


Unfortunately, some of the system expressions qualify this check. for example expression time=ugvar("time"). Not(IsNoEdit) check passes for this expression.


1. What is the easiest way to filter seeing these expressions?


2. I can create an expression foo=ug_var("time") and lock it, but I'd like to know if there is a way to distinguish foo from any system expression?


The end goal of this is to be able to edit the value of expressions. As a fallback I can put the editing in a try catch and continue but I'd like to minimize raising errors.